A circular buffer (or ring buffer) is a data structure that uses a single, fixed-size buffer as if it were connected end-to-end.