58 if (index >= self->
count)
66 return self->
count == 0;
void * array_first(const array_t *self)
Pointer to the first element of the array.
bool array_is_empty(const array_t *self)
True if the array contains no element.
void * array_last(const array_t *self)
Pointer of the last element of the array.
void * array_end(const array_t *self)
One-past-the-end pointer of the array.
void * array_get(const array_t *self, size_t index)
Pointer of the element at position index of the array.
size_t array_count(const array_t *self)
Number of elements stored.
Internal state of a dynamic array.
size_t array_offset(const array_t *self, size_t count)
The size in memory of count elements.
O2S array implementation.
void * start
Underlying storage.
size_t count
Number of elements currently stored.
size_t capacity
Number of elements that can fit in the storage.