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

Function wasm_table_size

crates/c-api/src/table.rs:95–99  ·  view source on GitHub ↗
(t: &wasm_table_t)

Source from the content-addressed store, hash-verified

93
94#[unsafe(no_mangle)]
95pub unsafe extern "C" fn wasm_table_size(t: &wasm_table_t) -> wasm_table_size_t {
96 let table = t.table();
97 let store = t.ext.store.context();
98 u32::try_from(table.size(&store)).unwrap()
99}
100
101#[unsafe(no_mangle)]
102#[cfg(feature = "gc")]

Callers

nothing calls this directly

Calls 4

tableMethod · 0.45
contextMethod · 0.45
unwrapMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected