Module vmap::io

source · []
Expand description

Read/Write types for buffering.

Both the Ring and InfiniteRing are fixed size anonymous allocations utilizing circular address mappinng. The circular mapping ensures that the entire readable or writable slice may always be addressed as a single, contiguous allocation. However, these two types differ in one key way: the Ring may only written to as readable space is consumed, whereas the InfiniteRing is always writable and will overwrite unconsumed space as needed.

Structs

The BufReader adds buffering to any reader using a specialized buffer.

The BufWriter adds buffering to any writer using a specialized buffer.

Fixed-size lossy read/write buffer with sequential address mapping.

Fixed-size reliable read/write buffer with sequential address mapping.

Traits

Common input trait for all buffers.

Common output trait for all buffers.