Expand description
Shared I/O utilities for Git-internal including buffered readers, the streaming hash abstraction over SHA-1 / SHA-256 / BLAKE3-256, and helpers for reading pack/file bytes while tracking stream progress.
Structs§
- Counting
Reader - A lightweight wrapper that counts bytes read from the underlying reader. replace deflate.intotal() in decompress_data
Enums§
- Hash
Algorithm - A streaming hasher abstraction over the supported
HashKinds.
Functions§
- read_
bytes - Read exactly
lenbytes from the given reader. - read_
sha - Read an object hash from the given reader using the thread-local
HashKind. - read_
sha_ for_ kind - Read an object hash of an explicit
kindfrom the given reader.