blob: 4ddd94999ab4f5faed7e244ff7342f4e1f7e1764 [file] [log] [blame]
///
pub mod decode;
///
pub mod index;
///
pub mod write;
/// The offset to a chunk as seen relative to the beginning of the file containing it.
pub type Offset = u64;
/// A chunk file providing a table into the parent data.
pub struct Index {
/// If true, we use `chunks` in a way that facilitates writing them.
will_write: bool,
/// Validated chunks as defined by their index entries.
///
/// Note that this list cannot be empty.
chunks: Vec<index::Entry>,
}