Round and round goes the buffer …
The concept of circular buffer (or ring buffer) is well known. It is immensely useful when dealing with buffering and processing stream of data. All in all, it’s pretty simple to implement, you just have an array of bytes that you treat like a ring by maintaining a begin pointer and an end pointer. When [...]



