hash_v2_file_sequential

Function hash_v2_file_sequential 

Source
pub fn hash_v2_file_sequential(
    entry: &ManifestEntry,
    piece_length: u64,
    cancellation: &CancellationToken,
    progress: &impl ProgressSink,
) -> Result<V2HashResult>
Expand description

Hashes one file into a BEP 52 pieces root and optional piece layer.

ยงErrors

Returns an error for invalid piece lengths, cancellation, filesystem failures, or when the file no longer matches the supplied manifest snapshot.