class Wasmer::Memory
- Wasmer::Memory
- Reference
- Object
Overview
Memory is a vector of raw uninterpreted bytes. See Also Specification: https://webassembly.github.io/spec/core/syntax/modules.html#memories
Included Modules
Defined in:
wasmer/memory.crConstructors
Instance Method Summary
-
#bytesize : UInt32
Returns memory size as a number of bytes
-
#data : Bytes
Returns memory contents as Bytes
-
#grow(delta : Pages) : Bool
Grows the Memory's size by a given number of
Pages
(the delta) -
#size : Pages
Returns memory size as Pages
- #to_extern : Extern
-
#type : MemoryType
Returns memory's MemoryType
-
#view(offset : Int)
Returns the view of memory starting from provided offset raises if offset is greater than memory byte size
Instance methods inherited from module Wasmer::WithExtern
to_extern : Extern
to_extern
Constructor Detail
Instance Method Detail
Grows the Memory's size by a given number of Pages
(the delta)
def view(offset : Int)
#
Returns the view of memory starting from provided offset raises if offset is greater than memory byte size