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

Function wasm_table_get

crates/c-api/src/table.rs:71–78  ·  view source on GitHub ↗
(
    t: &mut wasm_table_t,
    index: wasm_table_size_t,
)

Source from the content-addressed store, hash-verified

69#[unsafe(no_mangle)]
70#[cfg(feature = "gc")]
71pub unsafe extern "C" fn wasm_table_get(
72 t: &mut wasm_table_t,
73 index: wasm_table_size_t,
74) -> Option<Box<wasm_ref_t>> {
75 let table = t.table();
76 let r = table.get(t.ext.store.context_mut(), u64::from(index))?;
77 wasm_ref_t::new(r)
78}
79
80#[unsafe(no_mangle)]
81#[cfg(feature = "gc")]

Callers

nothing calls this directly

Calls 5

fromFunction · 0.85
context_mutMethod · 0.80
newFunction · 0.50
tableMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected