Struct QueryDefinitionDescribeData
Decoded form of a QueryDefinitionDescribe record.
public readonly struct QueryDefinitionDescribeData
- Inherited Members
Constructors
QueryDefinitionDescribeData(byte, long, byte, uint, ushort, short, short, byte, ushort, int, ushort, ushort, ReadOnlyMemory<byte>, ushort, ReadOnlyMemory<byte>)
Construct a decoded query-definition descriptor.
public QueryDefinitionDescribeData(byte threadSlot, long timestamp, byte kind, uint localId, ushort targetComponentType, short primaryIndexFieldIdx, short sortFieldIdx, byte sortDescending, ushort definitionSourceFileId, int definitionSourceLine, ushort definitionSourceMethodId, ushort evaluatorCount, ReadOnlyMemory<byte> evaluatorBlob, ushort fieldDependencyCount, ReadOnlyMemory<byte> fieldDependenciesBlob)
Parameters
threadSlotbyteTyphon thread slot.
timestamplongEmit timestamp, in Stopwatch ticks.
kindbyte0 = View, 1 = EcsQuery.
localIduintViewId or EcsQueryId, per
kind.targetComponentTypeushortComponent type id the query targets.
primaryIndexFieldIdxshortPrimary index-scan field index, or
-1.sortFieldIdxshortSort field index, or
-1.sortDescendingbyteNon-zero for descending sort.
definitionSourceFileIdushortInterned file id of the definition site.
definitionSourceLineintSource line of the definition site.
definitionSourceMethodIdushortInterned method id of the definition site.
evaluatorCountushortNumber of evaluator entries in
evaluatorBlob.evaluatorBlobReadOnlyMemory<byte>Packed evaluator entries (4 bytes each).
fieldDependencyCountushortNumber of field-dependency entries in
fieldDependenciesBlob.fieldDependenciesBlobReadOnlyMemory<byte>Packed field-dependency entries (2 bytes each).
Properties
DefinitionSourceFileId
Interned file id of the query's definition site (indexes the trace's FileTable).
public ushort DefinitionSourceFileId { get; }
Property Value
DefinitionSourceLine
Source line of the query's definition site.
public int DefinitionSourceLine { get; }
Property Value
DefinitionSourceMethodId
Interned method id of the query's definition site.
public ushort DefinitionSourceMethodId { get; }
Property Value
EvaluatorBlob
Per-evaluator shape: 4 bytes each (FieldIdx u16, Op u8, Reserved u8). Total bytes = EvaluatorCount * 4.
public ReadOnlyMemory<byte> EvaluatorBlob { get; }
Property Value
EvaluatorCount
Number of evaluator entries packed in EvaluatorBlob.
public ushort EvaluatorCount { get; }
Property Value
FieldDependenciesBlob
Per-field-dep: 2 bytes each (u16). Total bytes = FieldDependencyCount * 2.
public ReadOnlyMemory<byte> FieldDependenciesBlob { get; }
Property Value
FieldDependencyCount
Number of field-dependency entries packed in FieldDependenciesBlob.
public ushort FieldDependencyCount { get; }
Property Value
Kind
Definition kind: 0 = View, 1 = EcsQuery.
public byte Kind { get; }
Property Value
LocalId
Local identifier — a ViewId or EcsQueryId depending on Kind.
public uint LocalId { get; }
Property Value
PrimaryIndexFieldIdx
Field index used for the primary index scan, or -1 when there is no index scan.
public short PrimaryIndexFieldIdx { get; }
Property Value
SortDescending
Sort direction: non-zero for descending, 0 for ascending.
public byte SortDescending { get; }
Property Value
SortFieldIdx
Field index the results are sorted on, or -1 when unsorted.
public short SortFieldIdx { get; }
Property Value
TargetComponentType
Component type id the query targets.
public ushort TargetComponentType { get; }
Property Value
ThreadSlot
Typhon thread slot the definition was emitted on.
public byte ThreadSlot { get; }
Property Value
Timestamp
Emit timestamp, in Stopwatch ticks.
public long Timestamp { get; }