Use a more unique way to identify a set of bytes.
(v []byte)
| 628 | |
| 629 | // Use a more unique way to identify a set of bytes. |
| 630 | func (r *rsync) hash(v []byte) uint64 { |
| 631 | r.hasher.Reset() |
| 632 | r.hasher.Write(v) |
| 633 | return r.hasher.Sum64() |
| 634 | } |
| 635 | |
| 636 | func (r *rsync) HashSize() int { return r.hasher.Size() } |
| 637 | func (r *rsync) HashBlockSize() int { return r.hasher.BlockSize() } |