Struct wasmer_runtime_core_fl::memory::StaticMemory[][src]

pub struct StaticMemory { /* fields omitted */ }
Expand description

This is an internal-only api.

A static memory allocates 6GB of virtual memory when created in order to allow the WebAssembly module to contain no bounds-checks.

Additionally, static memories stay at a single virtual address, so there is no need to reload its address on each use.

Static memories take a relatively long time to create, so if memories are short-lived, it’s recommended that a dynamic memory is used. There is currently no user-facing api that allows them to select the type of memory used however.

Implementations

The size of this memory in Pages.

Try to grow this memory by the given number of delta pages.

Get this memory represented as a slice of bytes.

Get this memory represented as a mutable slice of bytes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.