MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / parse

Function parse

crates/wizer/src/parse.rs:6–8  ·  view source on GitHub ↗

Parse the given Wasm bytes into a `ModuleInfo` tree.

(full_wasm: &'a [u8])

Source from the content-addressed store, hash-verified

4
5/// Parse the given Wasm bytes into a `ModuleInfo` tree.
6pub(crate) fn parse<'a>(full_wasm: &'a [u8]) -> wasmtime::Result<ModuleContext<'a>> {
7 parse_with(full_wasm, &mut Parser::new(0).parse_all(full_wasm))
8}
9
10pub(crate) fn parse_with<'a>(
11 full_wasm: &'a [u8],

Callers 15

instrumentMethod · 0.70
snapshotMethod · 0.70
instrument_componentMethod · 0.70
mainFunction · 0.50
parseMethod · 0.50
executeMethod · 0.50
frame_tableMethod · 0.50
parse_durationFunction · 0.50
serve_maybe_debugMethod · 0.50
invoke_componentMethod · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 2

parse_withFunction · 0.85
newFunction · 0.50

Tested by 1