TPCircularBuffer logo

TPCircularBuffer

Stores and retrieves data efficiently in a fixed-size memory buffer.

Made by Unknown Author

    What is TPCircularBuffer?

    A circular buffer is a data structure that efficiently manages a fixed-size buffer of elements, allowing for constant-time access to the first and last elements. TPCircularBuffer is an open-source implementation of a circular buffer in Objective-C, designed for use in audio and video applications. The library provides a lightweight, efficient, and thread-safe solution for managing circular buffers, with a focus on low-latency and real-time performance

    Highlights

    • Constant-time access to the first and last elements in the buffer
    • Thread-safe implementation, suitable for concurrent access
    • Supports various element types, including integers, floats, and custom structures
    • Provides a range of utility functions for common buffer operations, such as reading, writing, and clearing the buffer