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

Function wasm_func_param_arity

crates/c-api/src/func.rs:187–189  ·  view source on GitHub ↗
(f: &wasm_func_t)

Source from the content-addressed store, hash-verified

185
186#[unsafe(no_mangle)]
187pub unsafe extern "C" fn wasm_func_param_arity(f: &wasm_func_t) -> usize {
188 f.func().ty(f.ext.store.context()).params().len()
189}
190
191#[unsafe(no_mangle)]
192pub unsafe extern "C" fn wasm_func_result_arity(f: &wasm_func_t) -> usize {

Callers

nothing calls this directly

Calls 5

lenMethod · 0.45
paramsMethod · 0.45
tyMethod · 0.45
funcMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected