Function gix_features::hash::bytes
source ยท pub fn bytes(
read: &mut dyn Read,
num_bytes_from_start: u64,
kind: Kind,
progress: &mut dyn Progress,
should_interrupt: &AtomicBool
) -> Result<ObjectId>
Available on crate feature
progress
and (crate features rustsha1
or fast-sha1
) only.Expand description
Similar to bytes_of_file
, but operates on a stream of bytes.