wasmi_c_api

Function wasm_func_result_arity

source
#[no_mangle]
pub unsafe extern "C" fn wasm_func_result_arity(
    f: &wasm_func_t,
) -> usize
Expand description

Returns the number of result types of the wasm_func_t.

Wraps Func::ty, followed by FuncType::results and a call to len.

§Safety

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