Class Memory

A block of memory.

class Memory
  : wasmer.Handle!(wasmer.bindings.wasm_memory_t) ;

Constructors

NameDescription
this (store, limits)

Fields

NameTypeDescription
limits const(wasmer.bindings.wasm_limits_t)

Properties

NameTypeDescription
data[get] ubyte[]A slice of all the data in this block of memory.
length[get] ulongThe current length in bytes of this block of memory.
pageLength[get] uintThe current length in pages of this block of memory. One page of memory is 64 kB.
ptr[get] void*
valid[get] boolWhether this managed handle to a wasm_memory_t is valid.

Methods

NameDescription
grow (deltaPages) Grows this block of memory by the given amount of pages.