zvault/src/bundledb/mod.rs

24 lines
422 B
Rust
Raw Normal View History

2017-03-21 10:08:01 +00:00
mod error;
mod writer;
mod bundle;
mod db;
pub use self::error::BundleError;
pub use self::writer::BundleWriter;
pub use self::bundle::*;
pub use self::db::*;
2017-03-21 10:28:11 +00:00
pub static HEADER_STRING: [u8; 7] = *b"zvault\x01";
pub static HEADER_VERSION: u8 = 1;
2017-03-21 10:08:01 +00:00
/*
Bundle format
- Magic header + version
- Encoded header structure (contains size of next structure)
- Encoded chunk list (with chunk hashes and sizes)
- Chunk data
*/