Expand description
This crate implements a buffer interface for allocating memory and a buffer_ref interface for using shared zero copy slices of that memory.
These interfaces are designed to be used in high performance applications where cacheline alignment, SIMD instructions and zero-copy is important.
Structs§
- Buffer
- Buffer is a mutable byte container that is aligned to crate::ALIGNMENT bytes, and has a padding so the size of the underlying allocation is a multiple of crate::ALIGNMENT.
- Buffer
Ref - An immutable reference to a buffer. Can be used for shared zero copy views into a single buffer.
Constants§
- ALIGNMENT
- Alignment of the Buffer memory
Functions§
- cold_
copy ⚠ - Copy
len
bytes fromsrc
todst
.