MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / GetFnv32

Function GetFnv32

internal/utils/utils.go:15–23  ·  view source on GitHub ↗
(value []byte)

Source from the content-addressed store, hash-verified

13var fnvHash = fnv.New32a()
14
15func GetFnv32(value []byte) (uint32, error) {
16 _, err := fnvHash.Write(value)
17 if err != nil {
18 return 0, err
19 }
20 hash := fnvHash.Sum32()
21 fnvHash.Reset()
22 return hash, nil
23}
24
25func ConvertBigEndianBytesToUint64(data []byte) uint64 {
26 return binary.BigEndian.Uint64(data)

Callers 15

ZRemMethod · 0.92
ZRankMethod · 0.92
ZRevRankMethod · 0.92
ZExistMethod · 0.92
newSkipListFunction · 0.92
PutMethod · 0.92
GetByValueMethod · 0.92
sPutMethod · 0.92
SMoveByTwoBucketsMethod · 0.92
TestFnvHash32Function · 0.92

Calls 2

WriteMethod · 0.65
ResetMethod · 0.45