pub fn slice_one_pack_object(
bytes: &[u8],
object_start_offset: u64,
hash_bytes: usize,
) -> Result<&[u8]>Expand description
Advance pos past one packed object (including zlib payload).
object_start_offset is the byte offset of this object within the pack file
(used for OFS_DELTA base resolution).
Raw bytes of one packed object (header + zlib payload) starting at object_start_offset.
hash_bytes is the ref-delta base OID width in this pack (20 for SHA-1, 32 for SHA-256).