WasmWrapper

data class WasmWrapper(val ffiWrapper: <Error class: unknown class>) : Wrapper, AutoCloseable

Represents a WebAssembly (Wasm) wrapper for executing Wasm code.

Parameters

ffiWrapper

The underlying FFI wrapper instance.

Constructors

Link copied to clipboard
constructor(wasmModule: ByteArray)

Creates a new WasmWrapper instance with the given Wasm module.

constructor(ffiWrapper: <Error class: unknown class>)

Properties

Link copied to clipboard
val ffiWrapper: <Error class: unknown class>

Functions

Link copied to clipboard
open override fun close(): <Error class: unknown class>
Link copied to clipboard
open override fun invoke(method: String, args: ByteArray?, env: ByteArray?, invoker: Invoker): Result<ByteArray>
open override fun invoke(method: String, args: List<UByte>?, env: List<UByte>?, invoker: <Error class: unknown class>): List<UByte>

Invokes a method in the Wrapper with the specified options and invoker.