instrument_wasm_module_bytes

Function instrument_wasm_module_bytes 

Source
pub fn instrument_wasm_module_bytes(
    wasm_bytes: &[u8],
) -> Result<InstrumentedWasmModule>
Expand description

Validates and instruments a standard WebAssembly module binary with portable deduct-before-effect compute-quota accounting and logical/physical memory and table growth guards.

ยงErrors

Returns an error if wasm_bytes is not a valid WebAssembly module, declares host imports or memory64, declares any reserved "__ctb_*" export, or uses unsupported opcodes.