Skip to main content

Crate chunked_ringbuf

Crate chunked_ringbuf 

Source
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ยง

RingBuffer
Chunked ring buffer.
Transaction
A transaction which consists of a series of writes that can be committed or rolled back.
WriteTooLarge
Error returned when a write is larger than the buffer capacity.