Struct git_odb::data::Entry [−][src]
Expand description
An representing an full- or delta-object within a pack
Fields
header: HeaderThe entry’s header
decompressed_size: u64The decompressed size of the object in bytes
data_offset: u64absolute offset to compressed object data in the pack, just behind the entry’s header
Implementations
Access
Compute the pack offset to the base entry of the object represented by this entry.
The pack offset at which this entry starts
The amount of bytes used to describe this entry in the pack. The header starts at Self::pack_offset()
Decoding
Decode an entry from the given entry data d, providing the pack_offset to allow tracking the start of the entry data section.
Panics
If we cannot understand the header, garbage data is likely to trigger this.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Entry
impl UnwindSafe for Entry
Blanket Implementations
Mutably borrows from an owned value. Read more