generic circular buffer implementation in C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
circbuf/circbuf_deque
Ondřej Hruška 3d96951ce3 allow pop without dest 1 year ago
..
README.md improved circbuf 1 year ago
circbuf.c allow pop without dest 1 year ago
circbuf.h fixes 1 year ago

README.md

Circular buffer (enhanced)

This variant of a circular buffer uses static allocation.

This buffer is not meant for producer-consumer synchronization, it's geared towards use cases where the buffer is accessed from a single thread, such as to keep a running average.

The full capacity is utilized thanks to internally storing its length. The buffer has both front and back sets of push/pop/peek functions, as well as a way to iterate and mutate its elements.

See the header for usage details.