35 if (q->
length == 0)
return NULL;
47 if (q->
length == 0)
return false;
const uint16_t entrySize
size of an entry
const uint16_t capacity
capacity in entries
static void * qNext(Queue *q, void *ptr)
Peek at the next element in the queue.
uint16_t length
length of the queue
const QueueDescr *const descr
pointer to the descriptor
void * writePtr
write pointer
void * readPtr
read pointer
Queue is created in statically allocated memory.
void *const memoryFirst
first element pointer
bool qContains(Queue *q, void *data)
Iterates the queue to check for an element.
static void * qFirst(Queue *q)
Peek at the first element in the queue.
bool qRemoveBack(Queue *q)
Delete element from the back for the queue.
void * qQueueIP(Queue *q)
Queue data to the end of the queue in place.
void * qDeQueueIP(Queue *q)
Dequeue an element from the front of the queue in place.
void *const memoryLast
last element pointer