cespare/xxhash

Add Copy method

Opened this issue · 0 comments

The standard way to copy a hash is via (Un)MarshalBinary, which xxhash supports. But that's both inconvenient and inefficient for a small, fast hash like xxhash. A Copy method would be simple and fast:

func (d *Digest) Copy() *Digest