SMFSW / Queue

Queue handling library (designed on Arduino)
BSD 3-Clause "New" or "Revised" License
93 stars 20 forks source link

print all members of a static queue #22

Closed armando-fandango closed 1 year ago

armando-fandango commented 1 year ago

how to print all the members of a static queue without deleting them from queue

SMFSW commented 1 year ago

A mix of methods below will do.

q.getCount() or q.nbRecs(): number of records stored in the queue

Peek stuff at index from the queue using q.peekIdx(void * rec, uint16_t idx) returns true if successfully peeked from queue returns false if index is out of range