Function bsdiff::patch

source ·
pub fn patch<T: Read>(
    old: &[u8],
    patch: &mut T,
    new: &mut Vec<u8>
) -> Result<()>
Expand description

Apply a patch to an “old” file, returning the “new” file.

old is the old file, patch will be read from with the patch,new is the buffer that will be written into.