MCPcopy
hub / github.com/rclone/rclone / NewHashSet

Function NewHashSet

fs/hash/hash.go:311–314  ·  view source on GitHub ↗

NewHashSet will create a new hash set with the hash types supplied

(t ...Type)

Source from the content-addressed store, hash-verified

309
310// NewHashSet will create a new hash set with the hash types supplied
311func NewHashSet(t ...Type) Set {
312 h := Set(None)
313 return h.Add(t...)
314}
315
316// Add one or more hash types to the set.
317// Returns the modified hash set.

Callers 15

uploadUncheckedMethod · 0.92
HashesMethod · 0.92
makeTempFileFunction · 0.92
HashesMethod · 0.92
HashesMethod · 0.92
HashesMethod · 0.92
HashesMethod · 0.92
HashesMethod · 0.92
putMethod · 0.92
computeHashWithNonceMethod · 0.92
HashesMethod · 0.92
HashMethod · 0.92

Calls 2

SetTypeAlias · 0.70
AddMethod · 0.65

Tested by 8

stringToHashFunction · 0.74
TestFingerprintFunction · 0.74
TestHashSetFunction · 0.74
TestMultiHasherTypesFunction · 0.74
TestHashStreamTypesFunction · 0.74
TestHashSetStringerFunction · 0.74
TestReOpenFunction · 0.74
TestGetFsInfoFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…