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
.