Expand description
A chunked ring buffer implementation.
The chunk size is defined at time of construction. When a write results in a chunk that is greater than or equal to chunk size, the current tail pointer is recorded to delimit chunks. When there is not enough room for a write, the next chunk is discarded to make room for the write.
Structsยง
- Ring
Buffer - Chunked ring buffer.
- Transaction
- A transaction which consists of a series of writes that can be committed or rolled back.
- Write
TooLarge - Error returned when a write is larger than the buffer capacity.