Skip to main content

Class ResolvedVariantType

Assembly: WaaS.Core.dll​
View Source​
Declaration
public class ResolvedVariantType : IVariantType, IDespecializedValueType, IValueType, IType, ISortedExportable, ISorted

Implements:
WaaS.ComponentModel.Runtime.IVariantType, WaaS.ComponentModel.Runtime.IDespecializedValueType, WaaS.ComponentModel.Runtime.IValueType, WaaS.ComponentModel.Runtime.IType, WaaS.ComponentModel.Runtime.ISortedExportable, WaaS.ComponentModel.Runtime.ISorted

Properties​

MaxCaseAlignmentRank​

The maximum alignment (log2) of the payloads, to which the payload is aligned.

View Source​
Declaration
public byte MaxCaseAlignmentRank { get; }

Cases​

View Source​
Declaration
public ReadOnlyMemory<IVariantCase> Cases { get; }

DiscriminantTypeSizeRank​

log2 of the size of the discriminant: 0 (u8), 1 (u16) or 2 (u32).

View Source​
Declaration
public byte DiscriminantTypeSizeRank { get; }

AlignmentRank​

View Source​
Declaration
public byte AlignmentRank { get; }

ElementSize​

View Source​
Declaration
public ushort ElementSize { get; }

FlattenedCount​

View Source​
Declaration
public uint FlattenedCount { get; }

Methods​

Despecialize()​

View Source​
Declaration
public IDespecializedValueType Despecialize()
Returns​

WaaS.ComponentModel.Runtime.IDespecializedValueType

Flatten(Span<ValueType>)​

View Source​
Declaration
public void Flatten(Span<ValueType> dest)
Parameters​
TypeName
System.Span<WaaS.ValueType>dest

ValidateEquals(IType)​

View Source​
Declaration
public bool ValidateEquals(IType other)
Returns​

System.Boolean

Parameters​
TypeName
WaaS.ComponentModel.Runtime.ITypeother

Implements​