Crate bsa[−][src]
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
Bsa | Represents a BSA file |
File | Represents a file inside a BSA |
Folder | Represents a folder inside a BSA file |
Enums
ReadError | Represents an error when reading a BSA file |
Functions
open | Opens the specified BSA file. |
read | Opens the specified BSA file from a reader |