Table of Contents

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

Id int

The unique object identifier (primary key).

ParentId int

The parent object identifier (kuuluu).

AssemblyId int

The assembly identifier the object belongs to.

Guid Guid

The 128-bit RFC 4122 GUID of the object.

Type int

The object type code (e.g. 1 for part, 2 for assembly).

Subtype int

The object subtype code.

ExternalType Guid

The external type GUID.

Mask1 int

The first mask word.

Mask2 int

The second mask word.

ObjFlag int

The object status flags.

OwnerId int

The owner identifier.

PrivilegeId int

The privilege or access control identifier.

Fields

ExpectedRowSize

The expected row body size in bytes: 72.

public const int ExpectedRowSize = 72

Field Value

int

TableKey

The table key in model database sections: 1.

public const int TableKey = 1

Field Value

int

Properties

AssemblyId

The assembly identifier the object belongs to.

public int AssemblyId { get; init; }

Property Value

int

ExternalType

The external type GUID.

public Guid ExternalType { get; init; }

Property Value

Guid

Guid

The 128-bit RFC 4122 GUID of the object.

public Guid Guid { get; init; }

Property Value

Guid

Id

The unique object identifier (primary key).

public int Id { get; init; }

Property Value

int

Mask1

The first mask word.

public int Mask1 { get; init; }

Property Value

int

Mask2

The second mask word.

public int Mask2 { get; init; }

Property Value

int

ObjFlag

The object status flags.

public int ObjFlag { get; init; }

Property Value

int

OwnerId

The owner identifier.

public int OwnerId { get; init; }

Property Value

int

ParentId

The parent object identifier (kuuluu).

public int ParentId { get; init; }

Property Value

int

PrivilegeId

The privilege or access control identifier.

public int PrivilegeId { get; init; }

Property Value

int

Subtype

The object subtype code.

public int Subtype { get; init; }

Property Value

int

Type

The object type code (e.g. 1 for part, 2 for assembly).

public int Type { get; init; }

Property Value

int

Methods

Decode(ReadOnlySpan<byte>)

Decodes a row body into an TdbIO.ObjectRow.

public static ObjectRow Decode(ReadOnlySpan<byte> body)

Parameters

body ReadOnlySpan<byte>

Returns

ObjectRow

Decode(TableRow)

Decodes the body of row into an TdbIO.ObjectRow.

public static ObjectRow Decode(TableRow row)

Parameters

row TableRow

Returns

ObjectRow