Module mmap

Module mmap 

Source
Expand description

Memory-mapped IO helpers. Memory-mapped file helpers.

These utilities are used to read/write rkyv-serialized payloads efficiently and share them across cache layers without copying.

Re-exports§

pub use config::MmapConfig;
pub use config::MmapMode;
pub use error::MmapError;
pub use error::MmapResult;

Modules§

config
Mmap configuration types.
error
Mmap error types.

Structs§

AlignedMmapBuilder
Helper to write bytes to a file then open an aligned mmap.
MmapFile
A file-backed memory map (read-only, read-write, or copy-on-write).
MmapFileHandle
Shared read-only mmap handle (cheap to clone).

Constants§

RKYV_ALIGNMENT
Required alignment (bytes) for validated rkyv access.