Skip to main content

same_content_from_readers_with_buffer_size

Function same_content_from_readers_with_buffer_size 

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

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

BUFFER_SIZE must be greater than zero, and reading starts at each reader’s current position.