gix_pack/multi_index/
mod.rsuse std::path::PathBuf;
use memmap2::Mmap;
#[derive(Default, PartialEq, Eq, Ord, PartialOrd, Debug, Hash, Clone, Copy)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[allow(missing_docs)]
pub enum Version {
#[default]
V1 = 1,
}
pub type PackIndex = u32;
pub type EntryIndex = u32;
pub struct File {
data: Mmap,
path: std::path::PathBuf,
version: Version,
hash_len: usize,
object_hash: gix_hash::Kind,
num_indices: u32,
num_objects: u32,
fan: [u32; 256],
index_names: Vec<PathBuf>,
lookup_ofs: usize,
offsets_ofs: usize,
large_offsets_ofs: Option<usize>,
}
pub mod write;
mod access;
pub mod verify;
pub mod chunk;
pub mod init;