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§
- Owned
Aligned Buffer - Owned aligned buffer for executor purposes.
- Shared
Aligned Buffer - Shared aligned buffer for executor purposes.
Traits§
- Aligned
Buffer - Common interface of
OwnedAlignedBufferandSharedAlignedBuffer.