MCPcopy
hub / github.com/klauspost/compress / New

Function New

zstd/internal/xxhash/xxhash.go:39–43  ·  view source on GitHub ↗

New creates a new Digest that computes the 64-bit xxHash algorithm.

()

Source from the content-addressed store, hash-verified

37
38// New creates a new Digest that computes the 64-bit xxHash algorithm.
39func New() *Digest {
40 var d Digest
41 d.Reset()
42 return &d
43}
44
45// Reset clears the Digest's state so that it can be reused.
46func (d *Digest) Reset() {

Callers 11

NewReaderFunction · 0.92
resetMethod · 0.92
resetBasePrefixMethod · 0.92
resetBaseMethod · 0.92
testEncoderRoundtripFunction · 0.92
TestNewReaderMismatchFunction · 0.92
testDigestFunction · 0.85
TestResetFunction · 0.85
TestBinaryMarshalingFunction · 0.85
TestAllocsFunction · 0.85

Calls 1

ResetMethod · 0.95

Tested by 7

testEncoderRoundtripFunction · 0.74
TestNewReaderMismatchFunction · 0.74
testDigestFunction · 0.68
TestResetFunction · 0.68
TestBinaryMarshalingFunction · 0.68
TestAllocsFunction · 0.68