Skip to main content

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
TypeName
System.Stringname
<T>value
Type Parameters
  • T

GetMemory(uint)

View Source
Declaration
public Span<byte> GetMemory(uint index)
Returns

System.Span<System.Byte>

Parameters
TypeName
System.UInt32index

TryGrowMemory(uint, int, out int)

View Source
Declaration
public bool TryGrowMemory(uint index, int numPages, out int oldNumPages)
Returns

System.Boolean

Parameters
TypeName
System.UInt32index
System.Int32numPages
System.Int32oldNumPages

~Instance()

View Source
Declaration
protected ~Instance()

Implements