Module buffer

Source
Expand description

Types to support writing to a contiguous byte buffer.

This is different from bytes::BufMut in that the buffer is required to be contiguous, which allows for more efficient use with type erasure.

Structs§

Buf
An accessor for writing to a partially-initialized byte buffer.

Traits§

Buffer
Models a partially written, contiguous byte buffer.

Functions§

write_with
Calls f with a Buf, which provides safe methods for extending the initialized portion of the buffer.