Portals 0.7.0 · dev0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::FiniteTextDocument Class Referencefinal
Explicit owning finite UTF-8 document/session; no UI ownership or file I/O. Whole-buffer segmentation and existing snapshot history have costs proportional to finite admitted text. Large/windowed editors use the metadata-only map with their own boundary proofs and history. Caller serializes operations; borrowed text expires on successful text mutation or destruction. There are no callbacks. Logical identity, selection and history survive view replacement and SaveAs.
More...
Explicit owning finite UTF-8 document/session; no UI ownership or file I/O. Whole-buffer segmentation and existing snapshot history have costs proportional to finite admitted text. Large/windowed editors use the metadata-only map with their own boundary proofs and history. Caller serializes operations; borrowed text expires on successful text mutation or destruction. There are no callbacks. Logical identity, selection and history survive view replacement and SaveAs.
Explicitly accepted new baseline, copied/validated before publication.
Returns
Success or checked failure; advances lineage and clears incompatible marks/history. This starts a new compatible-history generation, keeping logical resource identity.
Successful physical write acknowledgement from this document.
Returns
Success or STALE/CONFLICT; older acknowledgements cannot replace newer savepoints. SaveAs updates only physical target/savepoint, never selection, identity or history.
General position receipt with a validated UTF-8 byte-boundary offset. A disappeared boundary snaps BACKWARD before, or FORWARD after, its current cluster.