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
Idint-
The string chunk identifier (primary key).
NextIdint-
Identifier of the next chunk in a chained string, or negative if terminating.
HashIdint-
Hash code of the string.
RefCountint-
Reference count.
Textstring-
The text content of this chunk.
RawBytesReadOnlyMemory<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 = 45Field Value
TableKey
The table key in model database sections: 50.
public const int TableKey = 50Field Value
Properties
HashId
Hash code of the string.
public int HashId { get; init; }Property Value
Id
The string chunk identifier (primary key).
public int Id { get; init; }Property Value
NextId
Identifier of the next chunk in a chained string, or negative if terminating.
public int NextId { get; init; }Property Value
RawBytes
The raw bytes of this chunk (up to 29 bytes).
public ReadOnlyMemory<byte> RawBytes { get; init; }Property Value
RefCount
Reference count.
public int RefCount { get; init; }Property Value
Text
The text content of this chunk.
public string Text { get; init; }Property Value
Methods
Decode(ReadOnlySpan<byte>)
Decodes a row body into a TdbIO.StringPoolRow.
public static StringPoolRow Decode(ReadOnlySpan<byte> body)Parameters
bodyReadOnlySpan<byte>
Returns
Decode(TableRow)
Decodes the body of row into a TdbIO.StringPoolRow.
public static StringPoolRow Decode(TableRow row)Parameters
rowTableRow