Skip to main content

Module buffer

Module buffer 

Source
Expand description

Custom buffer used for parsing within the Sōzu codebase. Channel-side ring buffers.

Two flavours: fixed is a fixed-capacity ring used when the maximum payload size is known up-front; growable doubles its backing Vec<u8> until it hits a configured cap. Both flavours implement the same shift/insert/replace operations with overlapping-safe moves and bounds checked against self.capacity().

Modules§

fixed
Fixed-capacity ring buffer (Buffer).
growable
Growable ring buffer (Buffer).