Expand description
Read-only file viewing: turning raw bytes into something displayable.
The app reads a capped prefix of a file through the Filesystem
abstraction and hands the bytes here. This module decides whether they are
text or binary and prepares the exact string the view layer renders, so
that the UI keeps no branching logic of its own.
Structs§
- File
View - A file prepared for read-only viewing.
Enums§
- Viewer
Content - What the viewer found in a file, already formatted for display.
Constants§
- MAX_
HEX_ BYTES - The most bytes rendered as a hex dump.
- MAX_
VIEW_ BYTES - The most bytes the viewer will hold for a single file.