Package-level declarations

Types

Link copied to clipboard

Provides a control structure to label branches in a list of instructions.

Link copied to clipboard
class Encoding
Link copied to clipboard

Wasm spec: module fails validation (type errors, constraint violations).

Link copied to clipboard

Wasm spec: binary format is malformed (parsing error).

Link copied to clipboard
class Parser

JVM facade for the portable WebAssembly binary parser.

Link copied to clipboard
fun interface ParserListener
Link copied to clipboard

Wasm spec: module cannot be instantiated (trap during initialization).

Link copied to clipboard

Wasm spec: module cannot be linked (import/export type mismatches).

Link copied to clipboard

Base exception for errors raised by the Wasm engine (parsing, validation, linking, instantiation, or execution). Distinct from uk.shusek.krwa.runtime.WasmException, which represents Wasm-level tagged exceptions from the exception-handling proposal.

Link copied to clipboard
object WasmLimits
Link copied to clipboard
Link copied to clipboard
class WasmParseLimitException(val limitName: String, val configuredLimit: Long, val actual: Long, val specificationReason: String?) : MalformedException

Parsing stopped because an input-controlled resource limit was exceeded.

Link copied to clipboard

Portable WebAssembly binary parser for Kotlin Multiplatform targets.

Link copied to clipboard
data class WasmParserLimits(val maxModuleBytes: Long = 64L * 1024 * 1024, val maxSectionBytes: Int = 32 * 1024 * 1024, val maxCustomSectionBytes: Int = 4 * 1024 * 1024, val maxNameBytes: Int = 64 * 1024, val maxVectorElements: Int, val maxTypes: Int, val maxRecGroupTypes: Int, val maxSupertypes: Int = 1, val maxStructFields: Int, val maxImports: Int, val maxFunctions: Int, val maxTables: Int, val maxMemories: Int = 16, val maxGlobals: Int, val maxExports: Int, val maxElementSegments: Int, val maxDataSegments: Int, val maxTags: Int, val maxFunctionParams: Int, val maxFunctionResults: Int, val maxFunctionBytes: Int = 8 * 1024 * 1024, val maxFunctionLocals: Int, val maxInstructionsPerFunction: Int, val maxControlDepth: Int)

Resource limits applied while decoding an untrusted WebAssembly binary.

Link copied to clipboard