Expand description
Shared I/O utilities for Git-internal including buffered readers, SHA abstractions, 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 hash abstraction to support both SHA1 and SHA256
which for stream hashing handle use (e.g. Sha1::new())
std::io::Writetrait to update the hash state
Functions§
- read_
bytes - Read exactly
lenbytes from the given reader. - read_
sha - Read an object hash from the given reader.