This small crate adapts an AFF4 container to the blockreader trait, so a filesystem parser can read the disk image. It relies on aff4tools to parse the AFF4 v1.0 format.
use aff4_blockreader::Aff4Source;
use blockreader::BlockReader;
// An example parser that reads basic info about a disk image
fn survey(source: &dyn BlockReader) {
println!("{} bytes, {} byte sectors", source.size(), source.sector_size());
}
let source = Aff4Source::open("evidence.aff4").unwrap();
survey(&source);Project code generated by Claude Opus 4.8 and Opus 5. Current version should be considered experimental. Validate results with alternate tools.
Released under the MIT License with special enthusiasm for the part in all caps.