Class Export
Represents an exported object from a Wasm Instance
Namespace: WasmerSharp
Assembly: WasmerSharp.dll
Syntax
public class Export : WasmerSharp.WasmerNativeHandle
Remarks
A module can declare a sequence of exports which are returned at instantiation time to the host environment.
Exports have a name, which is required to be valid UTF-8, whose meaning is defined by the host environment, a type, indicating whether the export is a function, global, memory or table.
Properties
Kind
Gets the kind for the exported item
Declaration
public WasmerSharp.ImportExportKind Kind { get; }
Property Value
Type | Description |
---|---|
ImportExportKind | To be added. |
Name
Gets the name for the export
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | To be added. |
Methods
GetExportFunction()
Gets the exported function
Declaration
public WasmerSharp.ExportFunction GetExportFunction ();
Returns
Type | Description |
---|---|
ExportFunction | Null on error, or the exported function. You can use the LastError error property to get details on the error. |
GetMemory()
Returns the memory object from the export
Declaration
public WasmerSharp.Memory GetMemory ();
Returns
Type | Description |
---|---|
Memory | To be added. |