メインコンテンツまでスキップ

Struct StackValueItem

Represents a value on the stack.

Assembly: WaaS.Core.dll​
View Source​
Declaration
public struct StackValueItem : IEquatable<StackValueItem>

Implements:
System.IEquatable<WaaS.Runtime.StackValueItem>

Properties​

IsLabel​

View Source​
Declaration
public readonly bool IsLabel { get; }

IsNullReference​

View Source​
Declaration
public readonly bool IsNullReference { get; }

Methods​

ToString()​

Returns the fully qualified type name of this instance.

View Source​
Declaration
public override string ToString()
Returns​

System.String: The fully qualified type name.### IsType(ValueType)

View Source​
Declaration
public readonly bool IsType(ValueType type)
Returns​

System.Boolean

Parameters​
TypeName
WaaS.ValueTypetype

FromReference(ValueType, object)​

Creates a reference value (funcref or externref). null is the null reference.

View Source​
Declaration
public static StackValueItem FromReference(ValueType type, object value)
Returns​

WaaS.Runtime.StackValueItem

Parameters​
TypeName
WaaS.ValueTypetype
System.Objectvalue

ExpectReference()​

Gets the object of a reference value. Returns null for the null reference.

View Source​
Declaration
public readonly object ExpectReference()
Returns​

System.Object

TryGetLabel(out Label)​

View Source​
Declaration
public readonly bool TryGetLabel(out Label label)
Returns​

System.Boolean

Parameters​
TypeName
WaaS.Runtime.Labellabel

TryGetValue(out uint)​

View Source​
Declaration
public readonly bool TryGetValue(out uint value)
Returns​

System.Boolean

Parameters​
TypeName
System.UInt32value

TryGetValue(out ulong)​

View Source​
Declaration
public readonly bool TryGetValue(out ulong value)
Returns​

System.Boolean

Parameters​
TypeName
System.UInt64value

TryGetValue(out float)​

View Source​
Declaration
public readonly bool TryGetValue(out float value)
Returns​

System.Boolean

Parameters​
TypeName
System.Singlevalue

TryGetValue(out double)​

View Source​
Declaration
public readonly bool TryGetValue(out double value)
Returns​

System.Boolean

Parameters​
TypeName
System.Doublevalue

TryGetValue(out V128)​

View Source​
Declaration
public readonly bool TryGetValue(out V128 value)
Returns​

System.Boolean

Parameters​
TypeName
WaaS.V128value

ExpectValue()​

View Source​
Declaration
public readonly StackValueItem ExpectValue()
Returns​

WaaS.Runtime.StackValueItem

ExpectValue(out ValueType)​

View Source​
Declaration
public readonly StackValueItem ExpectValue(out ValueType type)
Returns​

WaaS.Runtime.StackValueItem

Parameters​
TypeName
WaaS.ValueTypetype

ExpectValue(ValueType)​

View Source​
Declaration
public readonly StackValueItem ExpectValue(ValueType type)
Returns​

WaaS.Runtime.StackValueItem

Parameters​
TypeName
WaaS.ValueTypetype

ExpectValueI32()​

View Source​
Declaration
public readonly uint ExpectValueI32()
Returns​

System.UInt32

ExpectValueI64()​

View Source​
Declaration
public readonly ulong ExpectValueI64()
Returns​

System.UInt64

ExpectValueF32()​

View Source​
Declaration
public readonly float ExpectValueF32()
Returns​

System.Single

ExpectValueF64()​

View Source​
Declaration
public readonly double ExpectValueF64()
Returns​

System.Double

ExpectValueV128()​

View Source​
Declaration
public readonly V128 ExpectValueV128()
Returns​

WaaS.V128

ExpectLabel()​

View Source​
Declaration
public readonly Label ExpectLabel()
Returns​

WaaS.Runtime.Label

Equals(StackValueItem)​

Indicates whether the current object is equal to another object of the same type.

View Source​
Declaration
public bool Equals(StackValueItem other)
Returns​

System.Boolean: true if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, false.

Parameters​
TypeNameDescription
WaaS.Runtime.StackValueItemotherAn object to compare with this object.

Equals(object)​

Indicates whether this instance and a specified object are equal.

View Source​
Declaration
public override bool Equals(object obj)
Returns​

System.Boolean: true if <code class="paramref">obj</code> and this instance are the same type and represent the same value; otherwise, false.

Parameters​
TypeNameDescription
System.ObjectobjThe object to compare with the current instance.

GetHashCode()​

Returns the hash code for this instance.

View Source​
Declaration
public override int GetHashCode()
Returns​

System.Int32: A 32-bit signed integer that is the hash code for this instance.

Implements​

  • System.IEquatable<WaaS.Runtime.StackValueItem>