Skip to main content

Module persistence

Module persistence 

Source
Expand description

Persistence state for a TextBuffer.

Owns the six former flat fields that describe “where this buffer lives on disk and whether its in-memory state has diverged from what’s on disk”: the filesystem handle, the optional on-disk path, the modified / recovery-pending dirty flags, the saved-root snapshot of the piece tree at last save, and the on-disk file size at last save.

The mark_dirty method is the single choke-point for flipping both dirty flags. TextBuffer::mark_content_modified calls it and then bumps the top-level version counter.

Structs§

Persistence
Filesystem + save-state for one TextBuffer.