Struct InstanceContext
An instance of this type is provided as the first parameter of imported functions and can be used to get some contextual information from the callback to operate on: the global Data set for the instance as well as the associated memory.
Namespace: WasmerSharp
Assembly: WasmerSharp.dll
Syntax
public struct InstanceContext
Properties
Data
Retrieves the global Data value that was set for this Instance.
Declaration
public object Data { get; }
Property Value
Type | Description |
---|---|
System.Object | To be added. |
Methods
GetMemory(UInt32)
The memory blob associated with the instance. Currently this only supports idx=0
Declaration
public WasmerSharp.Memory GetMemory (uint idx);
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | idx | The index of the memory to retrieve, currently only supports one memory blob. |
Returns
Type | Description |
---|---|
Memory | To be added. |