MCPcopy
hub / github.com/jetify-com/devbox / Bytes

Function Bytes

internal/cachehash/hash.go:22–26  ·  view source on GitHub ↗

Bytes returns a hex-encoded hash of b.

(b []byte)

Source from the content-addressed store, hash-verified

20
21// Bytes returns a hex-encoded hash of b.
22func Bytes(b []byte) string {
23 h := newHash()
24 h.Write(b)
25 return hex.EncodeToString(h.Sum(nil))
26}
27
28// Bytes6 returns the first 6 characters of the hash of b.
29func Bytes6(b []byte) string {

Callers 11

HashMethod · 0.92
HashMethod · 0.92
HashMethod · 0.92
ConfigHashMethod · 0.92
ProjectDirHashMethod · 0.92
getSubOrAccessTokenHashFunction · 0.92
HashMethod · 0.92
HashMethod · 0.92
Bytes6Function · 0.85
JSONFunction · 0.85
JSONFileFunction · 0.85

Calls 2

newHashFunction · 0.85
WriteMethod · 0.80

Tested by

no test coverage detected