WasmHostCallback Delegate
The steps of a host function: the arguments are converted to the results, or an exception is thrown. A WasmThrowException throws its exception in WebAssembly; any other exception aborts the execution and is thrown by the call into WebAssembly.
public delegate void WasmHostCallback(ReadOnlySpan<WasmValue> arguments, Span<WasmValue> results)Parameters
argumentsReadOnlySpan<WasmValue>- The arguments: one per parameter of the type of the function.
resultsSpan<WasmValue>- Receives the results: one per result of the type of the function.