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

Function function_section

crates/wizer/src/parse.rs:67–75  ·  view source on GitHub ↗
(
    module: &mut ModuleContext<'a>,
    funcs: wasmparser::FunctionSectionReader<'a>,
)

Source from the content-addressed store, hash-verified

65}
66
67fn function_section<'a>(
68 module: &mut ModuleContext<'a>,
69 funcs: wasmparser::FunctionSectionReader<'a>,
70) -> wasmtime::Result<()> {
71 for ty_idx in funcs {
72 module.push_function(ty_idx?);
73 }
74 Ok(())
75}
76
77fn table_section<'a>(
78 module: &mut ModuleContext<'a>,

Callers 1

parse_withFunction · 0.85

Calls 2

OkFunction · 0.85
push_functionMethod · 0.45

Tested by

no test coverage detected