Skip to main content

changed

Function changed 

Source
fn changed(old: &[u8], new: &[u8]) -> Option<Range<usize>>
Expand description

The range where new differs from old, which has the same length.

Compares whole chunks first, so unchanged memory is skipped without testing each byte.