Module verify

Source
Expand description

Modules§

checksum

Functions§

checksum_on_disk_or_mmap
Calculate the hash of the given kind by trying to read the file from disk at data_path or falling back on the mapped content in data. Ok(desired_hash) or Err(Some(actual_hash)) is returned if the hash matches or mismatches. If the Err(None) is returned, the operation was interrupted.
fan
Returns the index at which the following index + 1 value is not an increment over the value at index.