A ring buffer (also known as a circular buffer) is a fixed-size data structure that operates on the First-In-