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

Function memory_section

crates/wizer/src/parse.rs:87–95  ·  view source on GitHub ↗
(
    module: &mut ModuleContext<'a>,
    mems: wasmparser::MemorySectionReader<'a>,
)

Source from the content-addressed store, hash-verified

85}
86
87fn memory_section<'a>(
88 module: &mut ModuleContext<'a>,
89 mems: wasmparser::MemorySectionReader<'a>,
90) -> wasmtime::Result<()> {
91 for m in mems {
92 module.push_defined_memory(m?);
93 }
94 Ok(())
95}
96
97fn global_section<'a>(
98 module: &mut ModuleContext<'a>,

Callers 1

parse_withFunction · 0.85

Calls 2

OkFunction · 0.85
push_defined_memoryMethod · 0.80

Tested by

no test coverage detected