pub struct PackEntry {
pub offset: u64,
pub len: u64,
pub obj_type: ObjType,
pub uncompressed_size: u64,
pub delta_base: DeltaBase,
}Expand description
One entry, as the pack itself states it.
Fields§
§offset: u64Start of the entry — its type/size header, not its zlib stream.
len: u64Header plus compressed stream. offset + len is where the next entry
starts, which is what makes this the byte extent to store verbatim.
obj_type: ObjType§uncompressed_size: u64The size the entry’s header declares, and what its zlib stream really inflated to — the walk checks the two agree.
For OfsDelta / RefDelta this is the size of the delta instruction
stream, not of the object the chain resolves to. The resolved size is
unknowable without applying the chain and is the indexer’s output; the
type column is what stops a caller mistaking one for the other.
delta_base: DeltaBaseTrait Implementations§
impl Eq for PackEntry
impl StructuralPartialEq for PackEntry
Auto Trait Implementations§
impl Freeze for PackEntry
impl RefUnwindSafe for PackEntry
impl Send for PackEntry
impl Sync for PackEntry
impl Unpin for PackEntry
impl UnsafeUnpin for PackEntry
impl UnwindSafe for PackEntry
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.