Skip to main content

Module walk

Module walk 

Source
Expand description

A defensive, read-only walk of a PCF file’s physical structure.

Unlike pcf::Container, which flattens the table-block chain into a single list of entries and hides per-block layout, this walk preserves the chain: every block’s offset, header, entry array, chain link, and stored-vs-computed table hash. It reuses the crate’s public byte parsers (*::from_bytes) so it never re-implements the format, but it tolerates corruption that Container::open would reject.

Structs§

BlockView
One table block as physically found in the chain.
EntryView
One partition entry as physically found in a block.
Walk
The result of walking a file.

Functions§

algo_name
Look up a hash algorithm’s display name without exposing internals.
flat_entries
Convenience: a flat copy of every parsed entry, in chain order.
walk
Walk data (the whole file loaded into memory) and build a structural model.