pub fn compute_delta(old: &[u8], new: &[u8]) -> BinaryDeltaExpand description
Compute a binary delta between old and new data.
Uses a fixed 256-byte block matching algorithm:
- Hash all blocks in
oldwith FNV-1a - Slide through
new, checking for matching blocks - Matching regions become
Copyops, non-matching becomeInsertops