Crate aligned_buffer

Source

Modules§

alloc
cap

Structs§

SharedAlignedBuffer
A shared buffer with an alignment. This buffer cannot be mutated. Typically, a SharedAlignedBuffer is created from a UniqueAlignedBuffer. It can be cloned and shared across threads. It is effectively the same as an Arc<[u8]>.
TryReserveError
UniqueAlignedBuffer
A unique (owned) aligned buffer. This can be used to write data to the buffer, before converting it to a SharedAlignedBuffer to get cheap clones and sharing of the buffer data. This type is effectively a Vec<u8> with a custom alignment.

Constants§

DEFAULT_BUFFER_ALIGNMENT
The default alignment for buffers.