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
Try to grow this memory by the given number of delta pages.
Get this memory represented as a mutable slice of bytes.