Delegate Function.UntypedCallbackDelegate
Encapsulates an untyped callback that receives arguments and can set results via a span of ValueBox.
Namespace: Wasmtime
Assembly: Wasmtime.Dotnet.dll
Syntax
public delegate void UntypedCallbackDelegate(Caller caller, ReadOnlySpan<ValueBox> arguments, Span<ValueBox> results);
Parameters
Type | Name | Description |
---|---|---|
Caller | caller | The caller. |
ReadOnlySpan<ValueBox> | arguments | The function arguments. |
Span<ValueBox> | results | The function results. These must be set (using the correct type) before returning, except when the method throws (in which case they are ignored). |