Table of Contents

Class TextChain

Namespace
TdbIO
Assembly
TdbIO.dll

One logical text: a head row and the rows it links to, in chain order.

public sealed class TextChain

Inheritance

Inherited Members

Properties

HeadField13

The raw u32 at offset 13 of the head row; its meaning is not known.

public uint HeadField13 { get; }

Property Value

uint

HeadId

The id of the head row.

public uint HeadId { get; }

Property Value

uint

HeadTag

The raw u32 at offset 9 of the head row. Any value other than 0xFFFFFFFF marks a head; the meaning of the value is not known.

public uint HeadTag { get; }

Property Value

uint

IsSaveStamp

True when the text starts with the ASCII bytes Save:: the rest of such a text is stored hidden and is read with TdbIO.TextChain.RevealSaveText.

public bool IsSaveStamp { get; }

Property Value

bool

RowIds

The row ids in chain order, head first.

public IReadOnlyList<uint> RowIds { get; }

Property Value

IReadOnlyList<uint>

SavedAt

The date and time in fields 1 and 2 of the revealed save stamp, or null when this is not a save stamp or the fields do not parse.

public DateTime? SavedAt { get; }

Property Value

DateTime?

Text

The text bytes as stored, not decoded: the encoding of bytes 0x80 and above is not known, so decoding is left to the caller. For a save stamp these are the stored (hidden) bytes.

public ReadOnlyMemory<byte> Text { get; }

Property Value

ReadOnlyMemory<byte>

Methods

RevealSaveText()

The revealed text of a save stamp: the bytes after Save:, reversed as a whole, with letters shifted by 13 places. The result is fields separated by ;. Fields after the date and time may hold names of people or machines; do not log them.

public byte[] RevealSaveText()

Returns

byte[]

A new array with the revealed bytes.

Exceptions

InvalidOperationException

The chain is not a save stamp.