Class TextChunk
A chunk of text with position metadata.
public sealed record TextChunk : IEquatable<TextChunk>
- Inheritance
-
TextChunk
- Implements
- Inherited Members
Constructors
TextChunk(string, int, int)
A chunk of text with position metadata.
public TextChunk(string Text, int Index, int CharOffset)
Parameters
TextstringThe chunk content.
IndexintZero-based chunk index within the source document.
CharOffsetintCharacter offset from the start of the source document.
Properties
CharOffset
Character offset from the start of the source document.
public int CharOffset { get; init; }
Property Value
Index
Zero-based chunk index within the source document.
public int Index { get; init; }
Property Value
Text
The chunk content.
public string Text { get; init; }