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

Method memory

crates/c-api/src/memory.rs:26–31  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

24 }
25
26 fn memory(&self) -> Memory {
27 match self.ext.which {
28 Extern::Memory(m) => m,
29 _ => unsafe { std::hint::unreachable_unchecked() },
30 }
31 }
32}
33
34#[unsafe(no_mangle)]

Callers 5

wasm_memory_typeFunction · 0.45
wasm_memory_dataFunction · 0.45
wasm_memory_data_sizeFunction · 0.45
wasm_memory_sizeFunction · 0.45
wasm_memory_growFunction · 0.45

Calls 1

unreachable_uncheckedFunction · 0.85

Tested by

no test coverage detected