Circular Buffers Overview

This document is an overview of circular buffers.

Purpose

Provides a fixed length first-in first-out queue of fixed-size objects.

Description

Note the following properties of circular buffers:

  • only simple add, remove, and reset operations are available

  • elements are added to the head of the queue and removed from the tail of the queue

  • all elements in a circular buffer must be objects of the same type

Circular buffers are provided by CCirBuf .

A predefined circular buffer of unsigned integers is provided by CCirBuffer.