Crate bsa[−][src]
Expand description
bsa
Here is an example of how to use this library:
use std::error::Error; fn main() -> Result<(), Box<dyn Error>> { let mut bsa = bsa::open("file.bsa")?; for folder in bsa.folders() { for file in folder.files() { println!("File {:?} in folder {:?}", file.name(), folder.name()); let contents = file.read_to_vec(&mut bsa)?; println!("{:?}", &contents); } } Ok(()) }
Structs
Represents a BSA file
Represents a file inside a BSA
Represents a folder inside a BSA file
Enums
Represents an error when reading a BSA file