Class Instance
An instance of a WebAssembly module.
Assembly: WaaS.Core.dll
View Source
Declaration
public class Instance : IDisposable, IModuleExports
Implements:
System.IDisposable
, WaaS.Runtime.IModuleExports
Properties
Module
View Source
Declaration
public Module Module { get; }
GlobalInstance
View Source
Declaration
public GlobalInstance GlobalInstance { get; }
TableInstance
View Source
Declaration
public TableInstance TableInstance { get; }
ExportInstance
View Source
Declaration
public ExportInstance ExportInstance { get; }
MemoryInstance
View Source
Declaration
public MemoryInstance MemoryInstance { get; }
FunctionInstance
View Source
Declaration
public FunctionInstance FunctionInstance { get; }
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
Declaration
public void Dispose()
TryGetExport<T>(string, out T)
View Source
Declaration
public bool TryGetExport<T>(string name, out T value) where T : IExternal
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | name |
<T> | value |
Type Parameters
T
GetMemory(uint)
View Source
Declaration
public Span<byte> GetMemory(uint index)
Returns
System.Span<System.Byte>
Parameters
Type | Name |
---|---|
System.UInt32 | index |
TryGrowMemory(uint, int, out int)
View Source
Declaration
public bool TryGrowMemory(uint index, int numPages, out int oldNumPages)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.UInt32 | index |
System.Int32 | numPages |
System.Int32 | oldNumPages |
~Instance()
View Source
Declaration
protected ~Instance()
Implements
System.IDisposable
- WaaS.Runtime.IModuleExports