Expand description
Bounded object reads and resumable repository-format hashing. State is inline; callers own the body buffer and can retain state between individual steps.
Structs§
- Object
Hasher - Resumable Git object hashing. Retain this value between
stepcalls; it owns a cursor and hash state but no scratch.size_of::<ObjectHasher<'_, R>>()gives the exact inline state budget for a target. IDs include kind and size. - Object
Reader - A cursor over a stable repository object. It contains only a repository
reference, index, metadata, and offset, with no body buffer or allocation.
Use
core::mem::size_of::<ObjectReader<'_, R>>()for the host’s state budget.
Constants§
- DEFAULT_
READ_ BUFFER_ SIZE - Stack scratch used by convenience pack/HTTP writers for streamed bodies.
The
*_with_scratchvariants let callers choose another budget.