Expand description
Support for archive files.
Example
use object::{Object, ObjectSection};
use std::error::Error;
use std::fs;
/// Reads an archive and displays the name of each member.
fn main() -> Result<(), Box<dyn Error>> {
let data = fs::read("path/to/binary")?;
let file = object::read::archive::ArchiveFile::parse(&*data)?;
for member in file.members() {
let member = member?;
println!("{}", String::from_utf8_lossy(member.name()));
}
Ok(())
}
Structs
- A partially parsed archive file.
- A partially parsed archive member.
- An iterator over the members of an archive.
Enums
- The kind of archive format.