Module manager

Module manager 

Source
Expand description

High-level API for managing memory-mapped files.

Provides convenience functions that wrap low-level mmap operations.

Modules§

async
Async helpers (Tokio) for creating and copying files without blocking the current thread.

Functions§

copy_mmap
Copy a mapped file to a new destination using the filesystem. This does not copy the mapping identity, only the underlying file contents.
create_mmap
Create a new read-write memory-mapped file of the given size. Truncates if the file already exists.
delete_mmap
Delete the file backing a mapping path. The mapping itself should be dropped by users before invoking this. On Unix, deleting an open file keeps the data until last handle drops; prefer dropping mappings before deleting.
flush
Flush changes for an existing mapping.
load_mmap
Load an existing memory-mapped file in the requested mode.
update_region
Update a region in an existing mapping (RW).
write_mmap
Write bytes at an offset into the specified file path (RW). Convenience wrapper around creating/loading and update_region.