Struct ObjectRow
- Namespace
- TdbIO
- Assembly
- TdbIO.dll
Decoded row of table 1 (object, size 72): object hierarchy, GUID, type, and status flags.
public readonly record struct ObjectRow : IEquatable<ObjectRow>Implements
Inherited Members
Constructors
ObjectRow(int, int, int, Guid, int, int, Guid, int, int, int, int, int)
Decoded row of table 1 (object, size 72): object hierarchy, GUID, type, and status flags.
public ObjectRow(int Id, int ParentId, int AssemblyId, Guid Guid, int Type, int Subtype, Guid ExternalType, int Mask1, int Mask2, int ObjFlag, int OwnerId, int PrivilegeId)Parameters
Idint-
The unique object identifier (primary key).
ParentIdint-
The parent object identifier (
kuuluu). AssemblyIdint-
The assembly identifier the object belongs to.
GuidGuid-
The 128-bit RFC 4122 GUID of the object.
Typeint-
The object type code (e.g. 1 for part, 2 for assembly).
Subtypeint-
The object subtype code.
ExternalTypeGuid-
The external type GUID.
Mask1int-
The first mask word.
Mask2int-
The second mask word.
ObjFlagint-
The object status flags.
OwnerIdint-
The owner identifier.
PrivilegeIdint-
The privilege or access control identifier.
Fields
ExpectedRowSize
The expected row body size in bytes: 72.
public const int ExpectedRowSize = 72Field Value
TableKey
The table key in model database sections: 1.
public const int TableKey = 1Field Value
Properties
AssemblyId
The assembly identifier the object belongs to.
public int AssemblyId { get; init; }Property Value
ExternalType
The external type GUID.
public Guid ExternalType { get; init; }Property Value
Guid
The 128-bit RFC 4122 GUID of the object.
public Guid Guid { get; init; }Property Value
Id
The unique object identifier (primary key).
public int Id { get; init; }Property Value
Mask1
The first mask word.
public int Mask1 { get; init; }Property Value
Mask2
The second mask word.
public int Mask2 { get; init; }Property Value
ObjFlag
The object status flags.
public int ObjFlag { get; init; }Property Value
OwnerId
The owner identifier.
public int OwnerId { get; init; }Property Value
ParentId
The parent object identifier (kuuluu).
public int ParentId { get; init; }Property Value
PrivilegeId
The privilege or access control identifier.
public int PrivilegeId { get; init; }Property Value
Subtype
The object subtype code.
public int Subtype { get; init; }Property Value
Type
The object type code (e.g. 1 for part, 2 for assembly).
public int Type { get; init; }Property Value
Methods
Decode(ReadOnlySpan<byte>)
Decodes a row body into an TdbIO.ObjectRow.
public static ObjectRow Decode(ReadOnlySpan<byte> body)Parameters
bodyReadOnlySpan<byte>
Returns
Decode(TableRow)
Decodes the body of row into an TdbIO.ObjectRow.
public static ObjectRow Decode(TableRow row)Parameters
rowTableRow