wasmtime_component_func_call function
- @Native<Pointer<
wasmtime_error_t> Function(Pointer<wasmtime_component_func_t> , Pointer<wasmtime_context_t> , Pointer<wasmtime_component_val_t> , Size, Pointer<wasmtime_component_val_t> , Size)>(ffi.Pointer<wasmtime_component_func_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_component_val_t>, ffi.Size, ffi.Pointer<wasmtime_component_val_t>, ffi.Size)>()
- Pointer<
wasmtime_component_func_t> func, - Pointer<
wasmtime_context_t> context, - Pointer<
wasmtime_component_val_t> args, - int args_size,
- Pointer<
wasmtime_component_val_t> results, - int results_size,
\brief Invokes \p func with the \p args given and returns the result.
The \p args provided must match the parameters that this function takes in terms of their types and the number of parameters. Results will be written to the \p results provided if the call completes successfully. It's required that the \p results_size exactly matches the number of results that this function produces. It's additionally required that \p results is all entirely initialize (cannot be uninitialized memory). The types of values do not matter, and #WASMTIME_COMPONENT_BOOL can be used to cheaply initialize.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_error_t> Function(
ffi.Pointer<wasmtime_component_func_t>,
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_component_val_t>,
ffi.Size,
ffi.Pointer<wasmtime_component_val_t>,
ffi.Size,
)
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_component_func_call(
ffi.Pointer<wasmtime_component_func_t> func,
ffi.Pointer<wasmtime_context_t> context,
ffi.Pointer<wasmtime_component_val_t> args,
int args_size,
ffi.Pointer<wasmtime_component_val_t> results,
int results_size,
);