Modules§
Structs§
- Shared
Aligned Buffer - A shared buffer with an alignment. This buffer cannot be mutated.
Typically, a
SharedAlignedBuffer
is created from aUniqueAlignedBuffer
. It can be cloned and shared across threads. It is effectively the same as an Arc<[u8]>. - TryReserve
Error - Unique
Aligned Buffer - 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 aVec<u8>
with a custom alignment.
Constants§
- DEFAULT_
BUFFER_ ALIGNMENT - The default alignment for buffers.