Skip to main content

compute_binary_delta

Function compute_binary_delta 

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

Compute a 0x03 binary XOR+Zstd delta directly, bypassing the binary-sniffing gate of compute_delta.

Returns None when the compressed XOR stream is not smaller than the target itself. Requires the zstd feature.