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

Function wasm_table_grow

crates/c-api/src/table.rs:103–113  ·  view source on GitHub ↗
(
    t: &mut wasm_table_t,
    delta: wasm_table_size_t,
    init: Option<&wasm_ref_t>,
)

Source from the content-addressed store, hash-verified

101#[unsafe(no_mangle)]
102#[cfg(feature = "gc")]
103pub unsafe extern "C" fn wasm_table_grow(
104 t: &mut wasm_table_t,
105 delta: wasm_table_size_t,
106 init: Option<&wasm_ref_t>,
107) -> bool {
108 let table = t.table();
109 let init = option_wasm_ref_t_to_ref(init, &table.ty(t.ext.store.context()));
110 table
111 .grow(t.ext.store.context_mut(), u64::from(delta), init)
112 .is_ok()
113}
114
115#[unsafe(no_mangle)]
116pub extern "C" fn wasm_table_as_extern(t: &mut wasm_table_t) -> &mut wasm_extern_t {

Callers

nothing calls this directly

Calls 8

option_wasm_ref_t_to_refFunction · 0.85
fromFunction · 0.85
is_okMethod · 0.80
context_mutMethod · 0.80
tableMethod · 0.45
tyMethod · 0.45
contextMethod · 0.45
growMethod · 0.45

Tested by

no test coverage detected