HexView supports two edit styles.
Overwrite mode is the lighter path:
Insert mode uses the piece-table path in ByteOverlay:
The sample records edits into EditJournal as they occur, then calls:
_journal.Undo(_overlay);
_journal.Redo(_overlay);
SaveService exposes:
SaveAs(ByteOverlay overlay, string path) for full materialization of the logical fileExportPatch(ByteOverlay overlay) for a simple text patch listing overwrites, inserts, and deletesThe single-view sample also includes an in-place overwrite save path for the currently opened file.
If you need an editor:
ByteWriteActionEditedOffsetsProviderThat preserves the separation between rendering and persistence.