wasm_func_call

Function wasm_func_call 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn wasm_func_call( func: &mut wasm_func_t, params: *const wasm_val_vec_t, results: *mut wasm_val_vec_t, ) -> *mut wasm_trap_t
Expand description

Calls the wasm_func_t with the given params and stores the result in results.

  • Returns a wasm_trap_t if the Wasm function call failed or trapped.
  • Returns a null pointer if the Wasm function call succeeded.

Wraps Func::call.

§Safety

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