pub struct PackWalk {
pub version: u32,
pub entries: Vec<PackEntry>,
pub trailer: Vec<u8>,
}Expand description
What one pass over a pack found.
Fields§
§version: u322 or 3.
entries: Vec<PackEntry>Entries in pack order — which is also ascending offset order.
trailer: Vec<u8>The pack’s own trailing checksum, as stored. Not verified here: this walk
reports what the bytes say, and the checksum of what was stored is
crate::indexer’s row.
Implementations§
Source§impl PackWalk
impl PackWalk
Sourcepub fn rebased(self, archive_offset: u64) -> Self
pub fn rebased(self, archive_offset: u64) -> Self
The same walk with every offset moved into the archive’s coordinate
space, which is what the objects table stores.
A delta base moves with it — that is the whole reason it is an offset and not an ordinal: the shift is arithmetic on a known quantity, with no table to consult and nothing to keep in step.
Sourcepub fn declared_bytes(&self) -> u64
pub fn declared_bytes(&self) -> u64
Total inflated bytes the entries declare. Not the pack’s own length.
Trait Implementations§
impl Eq for PackWalk
impl StructuralPartialEq for PackWalk
Auto Trait Implementations§
impl Freeze for PackWalk
impl RefUnwindSafe for PackWalk
impl Send for PackWalk
impl Sync for PackWalk
impl Unpin for PackWalk
impl UnsafeUnpin for PackWalk
impl UnwindSafe for PackWalk
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.