wasmi_c_api

Function wasm_memory_grow

source
#[no_mangle]
pub unsafe extern "C" fn wasm_memory_grow(
    m: &mut wasm_memory_t,
    delta: wasm_memory_pages_t,
) -> bool
Expand description

Grows the wasm_memory_t by delta Wasm pages.

Returns true if the operation was successful.

Wraps Memory::grow.

§Safety

It is the caller’s responsibility not to alias the wasm_memory_t with its underlying, internal WasmStoreRef.