Skip to main content

same_content_from_files_with_buffer_size

Function same_content_from_files_with_buffer_size 

Source
pub fn same_content_from_files_with_buffer_size<const BUFFER_SIZE: usize>(
    a: &mut File,
    b: &mut File,
) -> Result<bool, Error>
Expand description

Determines whether two files have the same content using BUFFER_SIZE bytes per stream.

BUFFER_SIZE must be greater than zero, and both files are rewound to the beginning when their lengths match.