gix_features::hash

Function bytes_with_hasher

Source
pub fn bytes_with_hasher(
    read: &mut dyn Read,
    num_bytes_from_start: u64,
    hasher: Hasher,
    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(), but takes a hasher instead of a hash kind.