frankzappa
Well-known member
yes, the queue itself worked, the return was wrong by one offset. essentially when deleting items from front or back, the head moves forward and tail moves backward, respectively. even though it does, the data is still there until it is overwritten. just the reading offset was off an indice
I figured it would be the indice not incrementing/decrementing properly.
I have noticed that when you want to pop old data out you can do it even if the buffer is empty. It's important to check if the buffer is empty before popping otherwise you risk getting data that is not relevant anymore.