Crate bfflib

source ·
Expand description

githubcrates-iodocs-rs


§Examples

Open an archive file:

let file = File::open("file.bff")?;
let reader = BufReader::new(file);
let mut archive = Archive::new(file)?;

Extract the whole archive:

archive.extract("output_dir")?;

Print filenames of all records in the archive:

archive.records().iter()
    .for_each(|record| println!("{}", record.filename().display()));

Extract single file:

archive.extract_file_by_name("./path/file", "output_dir")?;

Re-exports§

Modules§