View Source OrbWasmtime.Instance (Orb Wasmtime v0.1.16)

Instantiate a WebAssembly module and interact with it: call functions, get/set globals, and read/write memory.

Summary

Functions

Functions

Link to this function

alloc_list(instance, list)

View Source
Link to this function

alloc_string(instance, string)

View Source

See OrbWasmtime.Wasm.instance_call/2.

See OrbWasmtime.Wasm.instance_call/3.

See OrbWasmtime.Wasm.instance_call/4.

Link to this function

call(instance, f, a, b, c)

View Source

See OrbWasmtime.Wasm.instance_call/5.

Link to this function

call_joining_string_chunks(instance, f)

View Source

See OrbWasmtime.Wasm.instance_call_joining_string_chunks/2.

Link to this function

call_reading_string(instance, f)

View Source

See OrbWasmtime.Wasm.instance_call_returning_string/2.

Link to this function

call_reading_string(instance, f, a)

View Source

See OrbWasmtime.Wasm.instance_call_returning_string/3.

Link to this function

call_reading_string(instance, f, a, b)

View Source

See OrbWasmtime.Wasm.instance_call_returning_string/4.

Link to this function

call_reading_string(instance, f, a, b, c)

View Source

See OrbWasmtime.Wasm.instance_call_returning_string/5.

Link to this function

call_stream_string_chunks(instance, f)

View Source

See OrbWasmtime.Wasm.instance_call_stream_string_chunks/2.

Link to this function

capture(inst, arg2, f, arity)

View Source

See OrbWasmtime.Wasm.instance_cast/2.

See OrbWasmtime.Wasm.instance_cast/3.

See OrbWasmtime.Wasm.instance_cast/4.

Link to this function

cast(instance, f, a, b, c)

View Source

See OrbWasmtime.Wasm.instance_cast/5.

Link to this function

get_global(instance, global_name)

View Source

See OrbWasmtime.Wasm.instance_get_global/2.

Link to this function

log_memory(instance, start, length)

View Source
Link to this function

read_memory(instance, start, length)

View Source

See OrbWasmtime.Wasm.instance_read_memory/3.

Link to this function

read_string_nul_terminated(instance, memory_offset)

View Source

See OrbWasmtime.Wasm.instance_read_string_nul_terminated/2.

Link to this function

run(input, imports \\ [])

View Source
Link to this function

set_global(instance, global_name, new_value)

View Source

See OrbWasmtime.Wasm.instance_set_global/3.

Link to this function

write_i32(instance, memory_offset, value)

View Source

See OrbWasmtime.Wasm.instance_write_i32/3.

Link to this function

write_i64(instance, memory_offset, value)

View Source

See OrbWasmtime.Wasm.instance_write_i64/3.

Link to this function

write_memory(instance, memory_offset, bytes)

View Source

See OrbWasmtime.Wasm.instance_write_memory/3.

Link to this function

write_string_nul_terminated(instance, memory_offset, string)

View Source

See OrbWasmtime.Wasm.instance_write_string_nul_terminated/3.