class

Wasmer::Memory

Inherits Wasmer::WithExtern / Reference / Object

Memory is a vector of raw uninterpreted bytes. See Also Specification: https://webassembly.github.io/spec/core/syntax/modules.html#memories

Constructors

new(store : Store, type : MemoryType)
Source

Instance methods

bytesize

Returns memory size as a number of bytes

Source
data

Returns memory contents as Bytes

Source
grow(delta : Pages) : Bool

Grows the Memory's size by a given number of Pages (the delta)

Source
size

Returns memory size as Pages

Source
to_extern
Source
type

Returns memory's MemoryType

Source
view(offset : Int)

Returns the view of memory starting from provided offset raises if offset is greater than memory byte size

Source