Skip to main content

Crate pcf_debug

Crate pcf_debug 

Source
Expand description

pcf-debug — a read-only inspector and visualiser for Partitioned Container Format (PCF) files.

The crate is organised as a pipeline:

  1. [model::walk] reads the file’s physical structure defensively.
  2. model::build turns that into a model::LayoutMap with gaps and overlaps materialised.
  3. plugin decoders turn each partition’s bytes into a field tree.
  4. render turns the shared render::Report into 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 Report into 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.