Struct wasmer_vm::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.
Trait Implementations
Returns the size of the referenced value in bytes. Read more
Auto Trait Implementations
impl RefUnwindSafe for Mmapimpl UnwindSafe for MmapBlanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::MetadataConverts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more