Function rustsync::compare
[−]
[src]
pub fn compare<R: Read, B: AsRef<[u8]> + AsMut<[u8]>>(
sig: &Signature,
r: R,
block: B
) -> Result<Delta, Error>
Compare a signature with an existing file. This is the second step
of the protocol, r
is the local file when downloading, and the
remote file when uploading.
block
must be a buffer the same size as sig.window
.