Skip to main content

Module wasm_decoder

Module wasm_decoder 

Source
Expand description

WASM Binary Decoder - Converts wasmparser operators to WasmOp sequences

This module bridges the gap between parsed WASM binaries and any backend. It extracts function bodies and converts wasmparser operators to our internal WasmOp format.

Structs§

DecodedModule
Decoded WASM module with functions and memory
FunctionOps
Decoded function with its WasmOp sequence
ImportEntry
A WASM import entry with full metadata
WasmMemory
WASM linear memory specification

Enums§

ImportKind
Kind of a WASM import

Functions§

decode_wasm_functions
Decode a WASM binary and extract all function bodies as WasmOp sequences
decode_wasm_module
Decode a WASM binary and extract functions, memory, and data segments