Table of Contents

Struct StringPoolRow

Namespace
TdbIO
Assembly
TdbIO.dll

Decoded row of table 50 (string, size 45): string pool chunk.

public readonly record struct StringPoolRow : IEquatable<StringPoolRow>

Implements

Inherited Members

Constructors

StringPoolRow(int, int, int, int, string, ReadOnlyMemory<byte>)

Decoded row of table 50 (string, size 45): string pool chunk.

public StringPoolRow(int Id, int NextId, int HashId, int RefCount, string Text, ReadOnlyMemory<byte> RawBytes = default)

Parameters

Id int

The string chunk identifier (primary key).

NextId int

Identifier of the next chunk in a chained string, or negative if terminating.

HashId int

Hash code of the string.

RefCount int

Reference count.

Text string

The text content of this chunk.

RawBytes ReadOnlyMemory<byte>

The raw bytes of this chunk (up to 29 bytes).

Fields

ExpectedRowSize

The expected row body size in bytes: 45.

public const int ExpectedRowSize = 45

Field Value

int

TableKey

The table key in model database sections: 50.

public const int TableKey = 50

Field Value

int

Properties

HashId

Hash code of the string.

public int HashId { get; init; }

Property Value

int

Id

The string chunk identifier (primary key).

public int Id { get; init; }

Property Value

int

NextId

Identifier of the next chunk in a chained string, or negative if terminating.

public int NextId { get; init; }

Property Value

int

RawBytes

The raw bytes of this chunk (up to 29 bytes).

public ReadOnlyMemory<byte> RawBytes { get; init; }

Property Value

ReadOnlyMemory<byte>

RefCount

Reference count.

public int RefCount { get; init; }

Property Value

int

Text

The text content of this chunk.

public string Text { get; init; }

Property Value

string

Methods

Decode(ReadOnlySpan<byte>)

Decodes a row body into a TdbIO.StringPoolRow.

public static StringPoolRow Decode(ReadOnlySpan<byte> body)

Parameters

body ReadOnlySpan<byte>

Returns

StringPoolRow

Decode(TableRow)

Decodes the body of row into a TdbIO.StringPoolRow.

public static StringPoolRow Decode(TableRow row)

Parameters

row TableRow

Returns

StringPoolRow