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

Method String

crypto/hash/hash.go:46–51  ·  view source on GitHub ↗

String returns the Hash as the hexadecimal string of the byte-reversed hash.

()

Source from the content-addressed store, hash-verified

44// String returns the Hash as the hexadecimal string of the byte-reversed
45// hash.
46func (h Hash) String() string {
47 for i := 0; i < HashSize/2; i++ {
48 h[i], h[HashSize-1-i] = h[HashSize-1-i], h[i]
49 }
50 return hex.EncodeToString(h[:])
51}
52
53// Short returns the hexadecimal string of the first `n` reversed byte(s).
54func (h Hash) Short(n int) string {

Callers 15

CreateRandomBlockFunction · 0.95
GetLocalNodeIDFunction · 0.95
MarshalJSONMethod · 0.95
MarshalYAMLMethod · 0.95
newRandomNodeFunction · 0.95
UnmarshalBinaryMethod · 0.95
ackWorkerMethod · 0.45
sendQueryMethod · 0.45
WaitBPDatabaseCreationFunction · 0.45
requestBPFunction · 0.45
getPeersFunction · 0.45
testRequestFunction · 0.45

Calls

no outgoing calls

Tested by 9

newRandomNodeFunction · 0.76
testRequestFunction · 0.36
TestSimpleRPCFunction · 0.36
TestComplexRPCFunction · 0.36
TestCryptoConn_RWFunction · 0.36
TestHashStringFunction · 0.36
TestHash_DifficultyFunction · 0.36
TestTHashBFunction · 0.36