Skip to content

DocumentDiagnosticInfo

Namespace: Hex1b.Documents

Assembly: Hex1b.dll

Diagnostic snapshot of a document's internal piece table state.

csharp
public sealed class DocumentDiagnosticInfo

Inheritance

ObjectDocumentDiagnosticInfo

Properties

AddBufferSize

Size of the add (append-only) buffer in bytes.

Returns: Int32

csharp
public int AddBufferSize { get; init; }

ByteCount

Total byte count across all pieces.

Returns: Int32

csharp
public int ByteCount { get; init; }

CharCount

Total character count.

Returns: Int32

csharp
public int CharCount { get; init; }

LineCount

Number of lines.

Returns: Int32

csharp
public int LineCount { get; init; }

OriginalBufferSize

Size of the original (immutable) buffer in bytes.

Returns: Int32

csharp
public int OriginalBufferSize { get; init; }

PieceCount

Number of pieces in the tree.

Returns: Int32

csharp
public int PieceCount { get; init; }

Pieces

Ordered list of pieces in the piece table (in-order traversal).

Returns: IReadOnlyList<PieceDiagnosticInfo>

csharp
public IReadOnlyList<PieceDiagnosticInfo> Pieces { get; init; }

TreeRoot

Root of the red-black piece tree for structure visualization.

Returns: PieceTreeDiagnosticNode

csharp
public PieceTreeDiagnosticNode? TreeRoot { get; init; }

Version

Monotonic version counter at time of snapshot.

Returns: Int64

csharp
public long Version { get; init; }

Released under the MIT License.