In computer science and software development, a ring buffer is a data structure that uses a fixed-size buffer as if it were connected end-to-end.
This data structure is commonly used for buffering data streams or implementing queues.
https://en.wikipedia.org/wiki/Circular_buffer