Crate sparse_mmap
source ·Expand description
Memory-related abstractions.
Re-exports§
pub use sys::new_mappable_from_file;
pub use sys::Mappable;
pub use sys::MappableRef;
pub use sys::SparseMapping;
Modules§
- Memory functionality that needs a refactor.
- Linux implementation for memory mapping abstractions.
Structs§
Enums§
Traits§
- An object that can be mapped into a
SparseMapping
.
Functions§
- Must be called before using try_copy on Unix platforms.
- Atomically swaps the value at
dest
withnew
when*dest
iscurrent
, using a sequentially-consistent memory ordering. - Atomically swaps the value at
dest
withnew
when*dest
iscurrent
, using a sequentially-consistent memory ordering. - Copies
count
elements fromsrc
todest
.src
anddest
may overlap. Fails on access violation/SIGSEGV. Note that on case of failure, some of the bytes (even partial elements) may already have been copied. - Reads the value at
src
treating the pointer as a volatile access. - Writes
count
bytes of the valueval
todest
. Fails on access violation/SIGSEGV. Note that on case of failure, some of the bytes (even partial elements) may already have been written. - Writes
value
atdest
treating the pointer as a volatile access.