Module filearco::v1
[−]
[src]
This module creates and manages a FileArco v1 archive file.
Example
This example opens an example archive and outputs the text of all 3 stored files.
extern crate filearco; use std::path::Path; let archive_path = Path::new("testarchives/simple_v1.fac"); let archive = filearco::v1::FileArco::new(archive_path).ok().unwrap(); let cargo_toml = archive.get("Cargo.toml").unwrap(); println!("{}", cargo_toml.as_str().ok().unwrap()); let license_mit = archive.get("LICENSE-MIT").unwrap(); println!("{}", license_mit.as_str().ok().unwrap()); let license_apache = archive.get("LICENSE-APACHE").unwrap(); println!("{}", license_apache.as_str().ok().unwrap());
Structs
FileArco |
This represents an open, memory-mapped FileArco v1 archive file. |
FileRef |
This struct represents a reference to a slice of memory containing a requested file from the archive. |
Enums
FileArcoV1Error |
Error container for handling FileArco v1 archives |