Skip to main content

Crate sley_pack

Crate sley_pack 

Source

Structs§

EwahBitmap
MultiPackBitmapPack
MultiPackIndex
MultiPackIndexChunk
MultiPackIndexEntry
MultiPackIndexOidLookup
PackBitmapEntry
PackBitmapIndex
PackBitmapTypeBitmaps
PackBitmapWriter
Builder that assembles a reachability bitmap (.bitmap) for a pack.
PackEntry
PackFile
PackIndex
PackIndexBuild
PackIndexEntry
PackIndexLookup
PackIndexView
PackIndexViewData
PackIndexedObject
PackInput
PackMtimes
PackObject
PackReverseIndex
PackStreamIndexBuild
PackVerifyStat
Per-object statistics for one entry of a verified pack, in the shape git verify-pack -v reports.
PackVerifyStats
Result of PackFile::verify_pack_stats: per-object stats in pack offset order plus the pack’s trailing checksum.
PackWrite
PackWriteOptions
Options controlling sliding-window delta selection during pack generation.
PackWriteSummary
RepackPolicy

Constants§

DEFAULT_PACK_DEPTH
Default maximum delta chain depth used by PackFile::write_packed.
DEFAULT_PACK_WINDOW
Default sliding-window size used by PackFile::write_packed.

Traits§

HeaderTypeCache
Memo of pack offset -> resolved header (end-of-chain type, result size) for the cat-file --batch-check header fast path.
PackDeltaCache
A cache of objects already decoded from one specific pack, keyed by the in-pack byte offset at which each object’s entry begins.
PackIndexByteSource

Functions§

pack_order_index_positions
The .rev table for a pack: index positions (the rank of each object in the oid-sorted .idx) listed in pack order (ascending pack offset), as upstream write_rev_file lays them out. Accepts entries in any order; the result feeds PackReverseIndex::write.
read_object_at_arc
Decode the single object stored at byte offset within pack_bytes, reading only that object and its delta-base chain instead of parsing the whole pack.
read_object_at_with_cache_arc
Like read_object_at_arc, but reuses already-decoded objects from cache (keyed by in-pack offset) and records every object it decodes.
read_object_header_at
The object type and final (inflated) size of the entry at offset, without materializing the object body — git’s cat-file --batch-check fast path.
read_object_header_at_with_cache
Like read_object_header_at but threads a caller-owned HeaderTypeCache through the read so (a) the ofs-delta chain’s end-of-chain type is resolved at most once per chain and (b) a repeated lookup of the same offset returns from the memo without re-inflating (sley#26). The cache is keyed by in-pack offset, so it must be scoped to a single pack’s bytes by the caller.
write_bitmap
Convenience wrapper that builds a .bitmap file in one call.