Class ExportFunction
Represents an ExportedFunction from WebAssembly to .NET
Namespace: WasmerSharp
Assembly: WasmerSharp.dll
Syntax
public class ExportFunction : WasmerSharp.WasmerNativeHandle
Properties
Parameters
Returns the parameter types for the exported function as an array. Returns null on error. You can use the LastError error property to get details on the error.
Declaration
public WasmerSharp.WasmerValueType[] Parameters { get; }
Property Value
Type | Description |
---|---|
WasmerValueType[] | To be added. |
Returns
Returns the return types for the exported function as an array. Returns null on error. You can use the LastError error property to get details on the error.
Declaration
public WasmerSharp.WasmerValueType[] Returns { get; }
Property Value
Type | Description |
---|---|
WasmerValueType[] | To be added. |
Methods
Call(WasmerValue[], WasmerValue[])
Calls the function with the specified parameters
Declaration
public bool Call (WasmerSharp.WasmerValue[] values, WasmerSharp.WasmerValue[] results);
Parameters
Type | Name | Description |
---|---|---|
WasmerValue[] | values | The values to pass to the exported function. |
WasmerValue[] | results | The array with the results, it should have enough space to hold all the results |
Returns
Type | Description |
---|---|
System.Boolean | To be added. |