Module utils

Module utils 

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

CountingReader
A lightweight wrapper that counts bytes read from the underlying reader. replace deflate.intotal() in decompress_data

Enums§

HashAlgorithm
a hash abstraction to support both SHA1 and SHA256 which for stream hashing handle use (e.g. Sha1::new()) std::io::Write trait to update the hash state

Functions§

read_bytes
Read exactly len bytes from the given reader.
read_sha
Read an object hash from the given reader.