WasmValueType Struct
A value type: a number type, the vector type, or a reference type with its heap type.
public readonly struct WasmValueType : IEquatable<WasmValueType>- Implements
Constructors
| Name | Description |
|---|---|
| WasmValueType(WasmValueKind, WasmHeapKind, bool) | A value type: a number type, the vector type, or a reference type with its heap type. |
WasmValueType(WasmValueKind, WasmHeapKind, bool)
A value type: a number type, the vector type, or a reference type with its heap type.
public WasmValueType(WasmValueKind Kind, WasmHeapKind Heap = WasmHeapKind.Extern, bool Nullable = true)Parameters
KindWasmValueKind- The kind of the type.
HeapWasmHeapKind- The heap type of a reference type.
Nullablebool- Whether a reference type contains the null reference.
Properties
| Name | Description |
|---|---|
| AnyRef | Gets the anyref type: (ref null any). |
| ExnRef | Gets the exnref type: (ref null exn). |
| ExternRef | Gets the externref type: (ref null extern). |
| F32 | Gets the f32 type. |
| F64 | Gets the f64 type. |
| FuncRef | Gets the funcref type: (ref null func). |
| Heap | The heap type of a reference type. |
| I32 | Gets the i32 type. |
| I64 | Gets the i64 type. |
| IsAnyReference | Gets a value indicating whether the type matches (ref null any). |
| IsExceptionReference | Gets a value indicating whether the type matches (ref null exn). |
| IsExternReference | Gets a value indicating whether the type matches (ref null extern). |
| IsFunctionReference | Gets a value indicating whether the type matches (ref null func). |
| IsReference | Gets a value indicating whether the type is a reference type. |
| Kind | The kind of the type. |
| Nullable | Whether a reference type contains the null reference. |
| V128 | Gets the v128 type. |
AnyRef
WasmTypes.csExnRef
WasmTypes.csExternRef
WasmTypes.csGets the externref type: (ref null extern).
public static WasmValueType ExternRef { get; }Property value
F32
WasmTypes.csF64
WasmTypes.csFuncRef
WasmTypes.csHeap
WasmTypes.csI32
WasmTypes.csI64
WasmTypes.csIsAnyReference
WasmTypes.csIsExceptionReference
WasmTypes.csIsExternReference
WasmTypes.csIsFunctionReference
WasmTypes.csIsReference
WasmTypes.csKind
WasmTypes.csNullable
WasmTypes.csV128
WasmTypes.csMethods
| Name | Description |
|---|---|
| Deconstruct(WasmValueKind, WasmHeapKind, bool) | |
| Equals(WasmValueType) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() | Returns the type in the text format (e.g. i32, funcref, (ref null any)). |
Deconstruct(WasmValueKind, WasmHeapKind, bool)
public void Deconstruct(out WasmValueKind Kind, out WasmHeapKind Heap, out bool Nullable)Parameters
KindWasmValueKindHeapWasmHeapKindNullablebool
No documentation is available.
Equals overloads
Equals(WasmValueType)
public bool Equals(WasmValueType other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
WasmTypes.csOperators
| Name | Description |
|---|---|
| operator ==(WasmValueType, WasmValueType) | |
| operator !=(WasmValueType, WasmValueType) |
operator ==(WasmValueType, WasmValueType)
public static bool operator ==(WasmValueType left, WasmValueType right)No documentation is available.
operator !=(WasmValueType, WasmValueType)
public static bool operator !=(WasmValueType left, WasmValueType right)No documentation is available.