1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! [![github]](https://github.com/ponchofiesta/bffextract-rs) [![crates-io]](https://crates.io/crates/bfflib) [![docs-rs]](https://docs.rs/bfflib)
//!
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
//! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs
//!
//! <br>
//!
//! # Examples
//!
//! Open an archive file:
//!
//! ```rust
//! use std::{fs::File, io::BufReader};
//! use bfflib::{attribute, archive::Archive, Result};
//!
//! fn example() -> Result<()> {
//! // Open BFF file
//! let file = File::open("file.bff")?;
//! // Use BufReader for better performance
//! let reader = BufReader::new(file);
//! let mut archive = Archive::new(reader)?;
//!
//! // Print filenames of all records in the archive
//! archive.records().iter()
//! .for_each(|record| println!("{}", record.filename().display()));
//!
//! // Extract the whole archive
//! archive.extract("output_dir")?;
//!
//! // Extract single file
//! archive.extract_file_by_name("./path/file", "output_dir")?;
//!
//! Ok(())
//! }
//! ```
pub use ;