list.h
fiftyoneDegreesString * fiftyoneDegreesListGetAsString(fiftyoneDegreesList *list, int index)
Gets the item at the index provided as a string.
void fiftyoneDegreesListReset(fiftyoneDegreesList *list)
Resets a newly allocated list to a clean empty state.
void fiftyoneDegreesListFree(fiftyoneDegreesList *list)
Frees the memory allocated to the list structure and release all items stored in it.
Used to store a handle to the underlying item that could be used to release the item when it's finish...
Definition: collection.h:308
fiftyoneDegreesCollectionItem * items
Array of items.
Definition: list.h:113
uint32_t capacity
Capacity of the list to store items.
Definition: list.h:114
fiftyoneDegreesList * fiftyoneDegreesListInit(fiftyoneDegreesList *list, uint32_t capacity)
Initialise the list by allocating space for the items in the list structure.
void fiftyoneDegreesListRelease(fiftyoneDegreesList *list)
Releases all the items stored in the list.
void fiftyoneDegreesListAdd(fiftyoneDegreesList *list, fiftyoneDegreesCollectionItem *item)
Adds a collection item to a list.
uint32_t count
Number of items currently in the list.
Definition: list.h:115