Skip to content

slot_count

  • Count the elements of an array in the specified slot
  • Return the count
int64_t slot_count (
uint32_t slot_no
);
slot_count(1); // assumes an array is slotted into slot=1
NameTypeDescription
slot_nouint32_tThe slot number
TypeDescription
int64_t

The number of elements inside the slotted array

If negative, an error:
DOESNT_EXIST
- the specified slot does not contain any object or it is an invalid slot

NOT_AN_ARRAY
- the specified slot does not contain an array object