pub type VMArrayCallFunction = unsafe extern "C" fn(_: *mut VMOpaqueContext, _: *mut VMOpaqueContext, _: *mut ValRaw, _: usize);
Expand description

A function pointer that exposes the array calling convention.

Regardless of the underlying Wasm function type, all functions using the array calling convention have the same Rust signature.

Arguments:

  • Callee vmctx for the function itself.

  • Caller’s vmctx (so that host functions can access the linear memory of their Wasm callers).

  • A pointer to a buffer of ValRaws where both arguments are passed into this function, and where results are returned from this function.

  • The capacity of the ValRaw buffer. Must always be at least max(len(wasm_params), len(wasm_results)).