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

Function wasm_memory_grow

crates/c-api/src/memory.rs:80–87  ·  view source on GitHub ↗
(
    m: &mut wasm_memory_t,
    delta: wasm_memory_pages_t,
)

Source from the content-addressed store, hash-verified

78
79#[unsafe(no_mangle)]
80pub unsafe extern "C" fn wasm_memory_grow(
81 m: &mut wasm_memory_t,
82 delta: wasm_memory_pages_t,
83) -> bool {
84 let memory = m.memory();
85 let mut store = m.ext.store.context_mut();
86 memory.grow(&mut store, u64::from(delta)).is_ok()
87}
88
89#[unsafe(no_mangle)]
90pub extern "C" fn wasmtime_memory_new(

Callers

nothing calls this directly

Calls 5

fromFunction · 0.85
context_mutMethod · 0.80
is_okMethod · 0.80
memoryMethod · 0.45
growMethod · 0.45

Tested by

no test coverage detected