Skip to main content

Crate ab_aligned_buffer

Crate ab_aligned_buffer 

Source
Expand description

Efficient abstraction for aligned memory buffers with both owned and shared variants.

OwnedAlignedBuffer represents an aligned memory location that can be modified.

SharedAlignedBuffer can’t be modified but supports cheap reference-counting clones (like Arc, but much more efficient).

Contents of buffers are aligned to 16 bytes by default, which is the largest alignment required by primitive types. Alignment of the contents is a part of the type of the buffer (see Alignment). Allocations can be aligned more strictly than that, for example, to 4096 bytes for direct I/O.

Does not require a standard library (no_std) but does require allocator and atomics.

Modules§

alignment
Alignment of buffers

Structs§

OwnedAlignedBuffer
Owned aligned buffer for executor purposes.
SharedAlignedBuffer
Shared aligned buffer for executor purposes.

Traits§

AlignedBuffer
Common interface of OwnedAlignedBuffer and SharedAlignedBuffer.