WasmInstance Class
An instance of a module (a module instance).
public abstract class WasmInstanceProperties
| Name | Description |
|---|---|
| Exports | Gets the exports of the instance, in the order of the exports of the module. |
Exports
Gets the exports of the instance, in the order of the exports of the module.
public abstract IReadOnlyList<(string Name, WasmExtern Value)> Exports { get; }Property value
Methods
| Name | Description |
|---|---|
| GetExport(string) | Returns the export of a name, or null. |
| GetFunction(string) | Returns the exported function of a name, or null when there is no such export or it is not a function. |
| GetGlobal(string) | Returns the exported global of a name, or null when there is no such export or it is not a global. |
| GetMemory(string) | Returns the exported memory of a name, or null when there is no such export or it is not a memory. |
| GetTable(string) | Returns the exported table of a name, or null when there is no such export or it is not a table. |
| GetTag(string) | Returns the exported tag of a name, or null when there is no such export or it is not a tag. |
GetExport(string)
WasmObjects.csReturns the export of a name, or null.
public WasmExtern? GetExport(string name)GetFunction(string)
WasmObjects.csReturns the exported function of a name, or null when there is no such export or it is not a function.
public WasmFunction? GetFunction(string name)GetGlobal(string)
WasmObjects.csReturns the exported global of a name, or null when there is no such export or it is not a global.
public WasmGlobal? GetGlobal(string name)GetMemory(string)
WasmObjects.csReturns the exported memory of a name, or null when there is no such export or it is not a memory.
public WasmMemory? GetMemory(string name)GetTable(string)
WasmObjects.csReturns the exported table of a name, or null when there is no such export or it is not a table.