Expand description
The mmap module provides a safe interface to mmap memory and ensures unmap is called when the mmap object leaves scope.
Structs§
- Memory
Mapping - Wraps an anonymous shared memory mapping in the current process. Provides RAII semantics including munmap when no longer needed.
- Memory
Mapping Arena - Tracks Fixed Memory Maps within an anonymous memory-mapped fixed-sized arena in the current process.
Traits§
Functions§
- validate_
includes_ 🔒range - Validates that
offset..offset+range_sizelies within the bounds of a memory mapping ofmmap_sizebytes. Also checks for any overflow.