27 if (self->
type_size != destination->type_size)
34 destination->count += count;
void * array_end(const array_t *self)
One-past-the-end pointer of the array.
bool deque_pop_front_n(deque_t *self, void *destination, size_t count)
Pops the count first elements of the queue.
Realtime double-ended queues.
bool deque_pop_front_into_array(deque_t *self, struct array *destination, size_t count)
Move the count first elements at the back of destination.
bool array_reserve(array_t *self, size_t count)
Ensures the array has enough capacity to fit count new elements, reallocating if needed.
size_t type_size
Size in bytes of a single element.