Skip to main content

compute_delta

Function compute_delta 

Source
pub fn compute_delta(base: &[u8], target: &[u8]) -> (Vec<u8>, Vec<u8>)
Expand description

Compute a delta transforming base into target.

Returns (base_copy, delta). The first element is simply a copy of base, kept for API compatibility with the origin suture-protocol signature. The delta always reconstructs target via apply_delta and uses the smallest applicable encoding (see the crate docs).