Crate cdragon_rman

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§

BundleChunk
Chunk, associated to a bundle
BundleEntry
Bundle information from RMAN
ChunkEntry
Chunk information from RMAN
DirectoryEntry
Directory defined in RMAN
FileChunkRange
Data byte range for an RMAN file
FileChunksIter
An iterator over the chunks of an RMAN file
FileEntry
File information from RMAN
FileFlagEntry
File flag defined in RMAN
FileFlagSet
Set of RMAN file flags, as a bitmask
OffsetTableIter
An iterator over invidual entries of an RMAN table
Rman
Riot manifest file

Enums§

RmanError
Error in an RMAN file

Type Aliases§

BundleChunks
Map chunk IDs to their data
DirPaths
Map directory ID to full paths
FileBundleRanges
Chunk data information for an RMAN file