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

Function wasm_memory_size

crates/c-api/src/memory.rs:75–77  ·  view source on GitHub ↗
(m: &wasm_memory_t)

Source from the content-addressed store, hash-verified

73
74#[unsafe(no_mangle)]
75pub unsafe extern "C" fn wasm_memory_size(m: &wasm_memory_t) -> wasm_memory_pages_t {
76 u32::try_from(m.memory().size(m.ext.store.context())).unwrap()
77}
78
79#[unsafe(no_mangle)]
80pub unsafe extern "C" fn wasm_memory_grow(

Callers

nothing calls this directly

Calls 4

unwrapMethod · 0.45
sizeMethod · 0.45
memoryMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected