Expand description
pcf-debug — a read-only inspector and visualiser for Partitioned Container
Format (PCF) files.
The crate is organised as a pipeline:
- [
model::walk] reads the file’s physical structure defensively. model::buildturns that into amodel::LayoutMapwith gaps and overlaps materialised.plugindecoders turn each partition’s bytes into a field tree.renderturns the sharedrender::Reportinto text, hexdumps, or HTML.
The orchestration helper build_report runs steps 1–3; the binary in
main.rs adds argument parsing and chooses a renderer.
Modules§
- cli
- Command-line parsing for
pcf-debug. - model
- The physical model of a PCF file: a defensive walk, a byte-layout map, and the diagnostics found along the way.
- plugin
- The partition-decoder plugin system.
- render
- Rendering: turn the shared
Reportinto text, hexdumps, or HTML. Both the text and HTML renderers consume the same model so they never diverge.
Functions§
- build_
report - Build the full report (physical layout + decoded partitions) from raw bytes.