Crate cdragon_rman
source ·Expand description
Support of RMAN files, Riot manifest files
Use Rman to open an RMAN file and access its content.
An RMAN file is made of a header and multiple tables (bundles, file names, …).
When an instance is created, only the headers are read. Tables are then iterated on using the
iter_*()
methods.
Example: list files
let rman = Rman::open("example.manifest").expect("failed to open or read headers");
// Directories are listed separately from files and their basenames
let dir_paths = rman.dir_paths();
// Iterate on files, print the full paths
for file in rman.iter_files() {
println!("{}", file.path(&dir_paths));
}
Structs
- Chunk, associated to a bundle
- Bundle information from RMAN
- Chunk information from RMAN
- Directory defined in RMAN
- Data byte range for an RMAN file
- An iterator over the chunks of an RMAN file
- File information from RMAN
- File flag defined in RMAN
- Set of RMAN file flags, as a bitmask
- An iterator over invidual entries of an RMAN table
- Riot manifest file
Enums
- Error in an RMAN file
Type Aliases
- Map chunk IDs to their data
- Map directory ID to full paths
- Chunk data information for an RMAN file