Expand description
Virtualized Balanced B-Tree Rope Line Buffer with O(log N) line indexing and fine-grained mutations.
Structs§
- Line
Buffer - Fast, indexed line-based text buffer backed by a balanced B-Tree Rope.
- Rope
Internal - An internal node in the B-Tree Rope maintaining balanced child references and aggregated metrics.
- Rope
Leaf - A leaf node containing a contiguous block of text lines in the B-Tree Rope.
- Subtree
Metrics - Subtree character, newline, and byte count metrics cached at each node in the B-Tree.
- Text
Rope - Balanced B-Tree Rope text data structure for logarithmic-time line indexing, splitting, joining, and editing across massive documents (100,000+ lines).
Enums§
- Rope
Node - A node in the balanced B-Tree Rope hierarchy (either an internal branch or a leaf node).
- Split
Result - Result of a B-Tree insertion or split propagation.
Constants§
- CHUNK_
CAPACITY - Maximum number of lines per leaf node before splitting.
- MAX_
INTERNAL_ CHILDREN - Maximum number of child nodes per internal B-Tree node before splitting.
- MIN_
CHUNK_ SIZE - Minimum number of lines per leaf node.
- MIN_
INTERNAL_ CHILDREN - Minimum number of child nodes per internal B-Tree node.
Functions§
- byte_
to_ char - Converts a byte offset within
sto a character-based column index. - char_
to_ byte - Converts a character-based column index to a byte offset within
s.
Type Aliases§
- Rope
Chunk - Alias for backwards compatibility with tests and callers expecting RopeChunk.