Function librsync::whole::delta [] [src]

pub fn delta<R: ?Sized, S: ?Sized, W: ?Sized>(new: &mut R, base_sig: &mut S, output: &mut W) -> Result<u64> where R: Read, S: Read, W: Write

Generates a delta between a signature and a new file streams.

This function will consume the new file and base signature inputs and writes to the given output the delta between them. In case of success, the number of bytes written is returned, otherwise an error is reported. The new parameter is the input stream representing a possibly modified file with respect to some base, for which its signature is provided as base_sig parameter.

To generate a signature, see the signature function, or the Signature struct.