Expand description

A simple event-driven library for parsing WebAssembly binary files (or streams).

The parser library reports events as they happend and only stores parsing information for a brief period of time, making it very fast and memory-efficient. The event-driven model, however, has some drawbacks. If you need random access to the entire WebAssembly data-structure, this is not the right library for you. You could however, build such a data-structure using this library.

Structs

A binary reader of the WebAssembly structures and types.

A br_table entries representation.

Validation context for a WebAssembly function.

An IEEE binary32 immediate floating point value, represented as a u32 containing the bitpattern.

An IEEE binary64 immediate floating point value, represented as a u64 containing the bitpattern.

An incremental parser of a binary WebAssembly module.

Bytecode range in the WebAssembly module.

Validator for a WebAssembly binary module.

The implementation of WasmModuleResources used by Validator.

Flags for features that are enabled for validation.

Iterator over the inputs of a Wasm function type.

Iterator over the outputs of a Wasm function type.

Enums

A successful return payload from Parser::parse.

External types as defined here.

Instructions as defined here.

Values that can be parsed from a wasm module.

Section code as defined here.

Types as defined here.

Either a value type or a function type.

Possible return values from Validator::payload.

Traits

Types that qualify as Wasm function types for validation purposes.

Types that qualify as Wasm valiation database.

Functions

Test whether the given buffer contains a valid WebAssembly module, analogous to WebAssembly.validate in the JS API.

Type Definitions