pub fn generate(
old: &[u8],
new: &[u8],
patch: &mut impl Write,
progress: impl FnMut(State),
) -> Result<()>Expand description
Generate a ddelta patch. This has a limit of 2^31-1 bytes.
Beyond this, use generate_chunked
to create a patch file with multiple patches. The output is compatible with the original ddelta
tool, but not with bsdiff. Call apply or
apply_chunked to use the created patch file. progress is a function
that will be called periodically with progress updates.