Skip to main content

encode

Function encode 

Source
pub fn encode(old: &[u8], new: &[u8], block_override: Option<usize>) -> Delta
Expand description

Encode the difference from old to new.

Convenience wrapper for callers that hold both buffers locally: computes the signature of old and encodes new against it. block_override forces a block size (must be ≥ 1); otherwise block_size_for picks one.