Caller-owned state of a HexViewer: the selected byte and the first row on screen.
The selection is a byte offset into the data; the scroll offset is a row index the viewer re-derives on every frame so the selection stays visible, the way a ListView's does. Render-thread-only; every mutation raises version (see io.worxbend.tui.core.Versioned), so a write made outside the event path is painted too.
Moves the selection delta bytes — a row is bytesPerRow of them — clamped to the data. With nothing selected yet, the first move selects the first byte.
Moves the selection delta bytes — a row is bytesPerRow of them — clamped to the data. With nothing selected yet, the first move selects the first byte.