git_chunk/file/mod.rs
1///
2pub mod decode;
3///
4pub mod index;
5
6///
7pub mod write;
8
9/// The offset to a chunk as seen relative to the beginning of the file containing it.
10pub type Offset = u64;
11
12/// A chunk file providing a table into the parent data.
13pub struct Index {
14 /// If true, we use `chunks` in a way that facilitates writing them.
15 will_write: bool,
16 /// Validated chunks as defined by their index entries.
17 ///
18 /// Note that this list cannot be empty.
19 chunks: Vec<index::Entry>,
20}