Struct wasmer_vm::VMMemoryDefinition [−][src]
Expand description
The fields compiled code needs to access to utilize a WebAssembly linear memory defined within the instance, namely the start address and the size in bytes.
Fields
base: *mut u8The start address which is always valid, even if the memory grows.
current_length: u32The current logical size of this linear memory in bytes.
Trait Implementations
Returns the size of the referenced value in bytes. Read more
Safety
This data is safe to share between threads because it’s plain data that is the user’s responsibility to synchronize.
Safety
This data is safe to share between threads because it’s plain data that
is the user’s responsibility to synchronize. And it’s Copy so there’s
really no difference between passing it by reference or by value as far as
correctness in a multi-threaded context is concerned.
Auto Trait Implementations
impl RefUnwindSafe for VMMemoryDefinitionimpl Unpin for VMMemoryDefinitionimpl UnwindSafe for VMMemoryDefinitionBlanket 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