Struct ValidationContext
Context object for instruction validation.
Assembly: WaaS.Core.dll
View Source
Declaration
public readonly struct ValidationContext
Properties
Module
View Source
Declaration
public Module Module { get; }
CurrentFunction
View Source
Declaration
public Function CurrentFunction { get; }
Methods
GetFunctionType(uint)
View Source
Declaration
public FunctionType GetFunctionType(uint runtimeFunctionIndex)
Returns
Parameters
| Type | Name |
|---|---|
System.UInt32 | runtimeFunctionIndex |
GetLocalType(uint)
View Source
Declaration
public ValueType GetLocalType(uint index)
Returns
Parameters
| Type | Name |
|---|---|
System.UInt32 | index |
GetGlobalType(uint)
View Source
Declaration
public GlobalType GetGlobalType(uint index)
Returns
Parameters
| Type | Name |
|---|---|
System.UInt32 | index |
GetTableType(uint)
View Source
Declaration
public TableType GetTableType(uint index)
Returns
Parameters
| Type | Name |
|---|---|
System.UInt32 | index |
GetMemoryType(uint)
View Source
Declaration
public MemoryType GetMemoryType(uint index)
Returns
Parameters
| Type | Name |
|---|---|
System.UInt32 | index |
ValidateFunctionReference(uint, bool)
Validates ref.func and returns its type.
View Source
Declaration
public ValueType ValidateFunctionReference(uint functionIndex, bool inFunctionBody)
Returns
Parameters
| Type | Name | Description |
|---|---|---|
System.UInt32 | functionIndex | |
System.Boolean | inFunctionBody | The functions referenced in function bodies must be declared outside the function bodies (in elements, |
| exports or the initializers of globals). |
GetElement(uint)
View Source
Declaration
public Element GetElement(uint index)
Returns
Parameters
| Type | Name |
|---|---|
System.UInt32 | index |
ValidateDataIndex(uint)
View Source
Declaration
public void ValidateDataIndex(uint index)
Parameters
| Type | Name |
|---|---|
System.UInt32 | index |