23template <
typename T, u
int8_t size>
56 for (
int i = 0; i <
count; ++i)
RingBuffer (circular buffer) template class A small circular queue to hold a fixed number of elements...
void getLinearBuffer(T *out)
Returns the elements in the buffer in linear order.
void push(T val)
Pushes a new value into the ring buffer. This will overwrite the oldest value if the buffer is full.