Package-level declarations
Types
Represents the linear memory in the Wasm program. Can be shared reference b/w the host and the guest.
Represents the linear memory in the Wasm program. Can be shared reference b/w the host and the guest.
Signals successful completion of execution (used by WASI proc_exit with code 0).
This represents an Exported function from the Wasm module.
A HostFunction is an ExternalFunction that has been defined by the host.
An external value is the runtime representation of an entity that can be imported. It is an address denoting either a function instance, table instance, memory instance, or global instances in the shared store.
A live WebAssembly instance.
Runtime feature checks for the host JavaScript WebAssembly implementation.
Native browser WebAssembly execution path for Kotlin/Wasm browser builds.
Execution surface used by host-backed engines selected through ExecutionBackend.
Portable, non-shared linear memory implementation for Kotlin targets without a specialized memory backend.
Supplies a platform binding for ExecutionBackend.PULLEY.
Wasm spec: runtime trap during execution (unreachable, OOB access, null ref, etc.).
Selects one complete WebAssembly execution strategy for an Instance.
Wrapper for externref values converted to anyref via any.convert_extern. Prevents GC ref ID collisions between extern values and native GC objects.
Represents a function that can be called from Wasm.
Boxed representation of an i31ref value for storage in int-typed containers (tables, globals). On the stack, i31 values use an efficient tagged-long encoding (see uk.shusek.krwa.wasm.types.Value.encodeI31). This class is only used when i31 values need to pass through int-typed storage where the tag would be lost.
Thrown when the host interrupts a running Wasm execution.
Bounds every WebAssembly memory owned by one instance.
Engine-specific runtime error in compiled code paths (e.g., OOB memory access).
Runtime representation of a WasmGC struct instance. Fields are stored as raw long values (same encoding as stack values).
Properties
Selects the safest supported Wasmtime target for the current platform.
Functions
Validates and canonicalizes one exact ASCII DNS name, IPv4 literal, or IPv6 literal.