Skip to main content

stream_hash

Function stream_hash 

Source
pub fn stream_hash(path: &Path) -> Result<String>
Expand description

Hashes a file using streaming I/O with constant memory.

Reads in STREAM_BUFFER_SIZE chunks and feeds each chunk to a DefaultHasher. Never loads the entire file into memory.

Returns a 16-character hex fingerprint.