MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / HashB

Function HashB

crypto/hash/hashfuncs.go:42–45  ·  view source on GitHub ↗

HashB calculates hash(b) and returns the resulting bytes.

(b []byte)

Source from the content-addressed store, hash-verified

40
41// HashB calculates hash(b) and returns the resulting bytes.
42func HashB(b []byte) []byte {
43 hash := sha256.Sum256(b)
44 return hash[:]
45}
46
47// HashH calculates hash(b) and returns the resulting bytes as a Hash.
48func HashH(b []byte) Hash {

Callers 6

InsertMethod · 0.92
GetMethod · 0.92
TestTrie_InsertFunction · 0.92
TestTrie_GetFunction · 0.92
TestHashFuncsFunction · 0.85
BenchmarkHashFuncsFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestTrie_InsertFunction · 0.74
TestTrie_GetFunction · 0.74
TestHashFuncsFunction · 0.68
BenchmarkHashFuncsFunction · 0.68