Ring Buffer
About
Can be seen as Arrays that have a defined head and tail property.
You work inserting data in the middle of this Array which we will call Buffer. And you may insert in the head or in the tail, meaning these properties will end up creating an abstract Array inside this Buffer.
Once the tail reach N size you then tail % N, and make it ring around to the begining.
When tail = head then the buffer is full and must grow.
Last updated