mmap
Memory-Mapped Region Utilities
Functions
| Function | Description |
|---|---|
_mmap_byte_at | Internal byte reader. |
mmap_region_new | Create a new memory region of at least size bytes. |
mmap_read_byte | Read a byte at the given offset. |
mmap_write_byte | Write a byte at the given offset. |
mmap_read_i64 | Read an i64 at the given byte offset (must be 8-byte aligned). |
mmap_write_i64 | Write an i64 at the given byte offset (must be 8-byte aligned). |
mmap_fill | Fill len bytes starting at off with value val. |
mmap_region_size | Return the size of the region. |
Details
_mmap_byte_at
fn _mmap_byte_at(buf: &i8, idx: i64) -> i64Internal byte reader.
mmap_region_new
fn mmap_region_new(size: i64) -> &i64Create a new memory region of at least size bytes.
mmap_read_byte
fn mmap_read_byte(h: &i64, off: i64) -> i64Read a byte at the given offset.
mmap_write_byte
fn mmap_write_byte(h: &i64, off: i64, val: i64) -> i64Write a byte at the given offset.
mmap_read_i64
fn mmap_read_i64(h: &i64, off: i64) -> i64Read an i64 at the given byte offset (must be 8-byte aligned).
mmap_write_i64
fn mmap_write_i64(h: &i64, off: i64, val: i64) -> i64Write an i64 at the given byte offset (must be 8-byte aligned).
mmap_fill
fn mmap_fill(h: &i64, off: i64, len: i64, val: i64) -> i64Fill len bytes starting at off with value val.
mmap_region_size
fn mmap_region_size(h: &i64) -> i64Return the size of the region.