pub fn patch<B, D, W>(base: &mut B, delta: &mut D, output: &mut W) -> Result<u64>where
B: Read + Seek + ?Sized,
D: Read + ?Sized,
W: Write + ?Sized,
Expand description
Applies a patch, relative to a basis, into an output stream.
This function will consume the base file and the new file delta inputs and writes to the given
output the patched input. In case of success, the number of bytes written is returned,
otherwise an error is reported. The base
parameter is the input stream representing the base
file from which apply the patch. This stream must be seekable. The delta
parameter is a
stream containing the delta between the base file and the new one. The output parameter will
be used to write the output.
To generate a delta, see the delta
function, or the Delta
struct.