Struct wasmtime_runtime::Mmap [−][src]
pub struct Mmap { /* fields omitted */ }Expand description
A simple struct consisting of a page-aligned pointer to page-aligned and initially-zeroed memory and a length.
Implementations
Create a new Mmap pointing to at least size bytes of page-aligned accessible memory.
Create a new Mmap pointing to accessible_size bytes of page-aligned accessible memory,
within a reserved mapping of mapping_size bytes. accessible_size and mapping_size
must be native page-size multiples.
Make the memory starting at start and extending for len bytes accessible.
start and len must be native page-size multiples and describe a range within
self’s reserved memory.
Return the allocated memory as a mutable slice of u8.
Return the allocated memory as a mutable pointer to u8.