struct te_ring

Overview

Ring buffer structure. More…

#include <te_ring.h>

struct te_ring {
    // fields

    size_t ring_size;
    te_vec data;
    size_t rptr;
    size_t fill;
};

Detailed Documentation

Ring buffer structure.

All the fields may be inspected but must never be directly modified by the user.

Fields

size_t ring_size

Ring size.

te_vec data

Underlying data vector.

size_t rptr

Sequential read pointer.

size_t fill

Number of items in the ring.