Crate sparse_mmap

Source
Expand description

Memory-related abstractions.

Re-exports§

pub use sys::Mappable;
pub use sys::MappableRef;
pub use sys::SparseMapping;
pub use sys::alloc_shared_memory;
pub use sys::new_mappable_from_file;

Modules§

alloc
Memory functionality that needs a refactor.
unix
Linux implementation for memory mapping abstractions.

Structs§

MemoryError

Enums§

SparseMappingError

Traits§

AsMappableRef
An object that can be mapped into a SparseMapping.

Functions§

initialize_try_copy
Must be called before using try_copy on Unix platforms.
try_compare_exchange
Atomically swaps the value at dest with new when *dest is current, using a sequentially-consistent memory ordering.
try_compare_exchange_ref
Atomically swaps the value at dest with new when *dest is current, using a sequentially-consistent memory ordering.
try_copy
Copies count elements from src to dest. src and dest 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.
try_read_volatile
Reads the value at src treating the pointer as a volatile access.
try_write_bytes
Writes count bytes of the value val to dest. Fails on access violation/SIGSEGV. Note that on case of failure, some of the bytes (even partial elements) may already have been written.
try_write_volatile
Writes value at dest treating the pointer as a volatile access.