class

Wasm3::Environment

Inherits Reference < Object

Owns a Wasm3 environment. An environment can create multiple runtimes.

Constructors

Class methods

with
Source

Instance methods

close
Source
closed?
Source
finalize
Source
handle
Source
new_runtime(stack_size : UInt32 = DEFAULT_STACK_SIZE, userdata : Pointer(Void) = Pointer(Void).null) : Runtime
Source
parse(wasm : Bytes) : WasmModule

Parses a module without loading it into a runtime. The returned module retains its own copy of +wasm+, as Wasm3 requires the input buffer to remain alive for the lifetime of the module.

Source
parse(wasm : String) : WasmModule
Source
parse_file(path : String) : WasmModule
Source
parse_module(wasm : Bytes) : WasmModule
Source
parse_module(wasm : String) : WasmModule
Source
with_runtime(stack_size : UInt32 = DEFAULT_STACK_SIZE, userdata : Pointer(Void) = Pointer(Void).null, & : Runtime -> )
Source