Skip to main content

Module reader

Module reader 

Source
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§

ObjectHasher
Resumable Git object hashing. Retain this value between step calls; 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.
ObjectReader
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_scratch variants let callers choose another budget.