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

Function wasmtime_memory_grow

crates/c-api/src/memory.rs:128–135  ·  view source on GitHub ↗
(
    store: WasmtimeStoreContextMut<'_>,
    mem: &Memory,
    delta: u64,
    prev_size: &mut u64,
)

Source from the content-addressed store, hash-verified

126
127#[unsafe(no_mangle)]
128pub extern "C" fn wasmtime_memory_grow(
129 store: WasmtimeStoreContextMut<'_>,
130 mem: &Memory,
131 delta: u64,
132 prev_size: &mut u64,
133) -> Option<Box<wasmtime_error_t>> {
134 handle_result(mem.grow(store, delta), |prev| *prev_size = prev)
135}
136
137#[unsafe(no_mangle)]
138pub extern "C" fn wasmtime_memory_page_size(store: WasmtimeStoreContext<'_>, mem: &Memory) -> u64 {

Callers 3

mainFunction · 0.85
mainFunction · 0.85
growMethod · 0.85

Calls 2

handle_resultFunction · 0.85
growMethod · 0.45

Tested by

no test coverage detected