Creating a Circular Buffer in C and C++
Due to the resource constrained nature of embedded systems, circular buffer data structures can be found in most projects. Circular buffers (also known as ring buffers) are fixed-size buffers that work as if the memory is contiguous & circular in nature. As memory is generated and consumed, data does not need to be reshuffled - …
