Skip to main content

Module viewer

Module viewer 

Source
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§

FileView
A file prepared for read-only viewing.

Enums§

ViewerContent
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.