MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Crc32cHashString

Function Crc32cHashString

base/util.go:1062–1064  ·  view source on GitHub ↗

Crc32cHashString returns a zero padded version of a crc32 hash to always be hexadecimal prefixed 8 character string

(input []byte)

Source from the content-addressed store, hash-verified

1060
1061// Crc32cHashString returns a zero padded version of a crc32 hash to always be hexadecimal prefixed 8 character string
1062func Crc32cHashString(input []byte) string {
1063 return fmt.Sprintf("0x%08x", Crc32cHash(input))
1064}
1065
1066func SplitHostPort(hostport string) (string, string, error) {
1067 host, port, err := net.SplitHostPort(hostport)

Callers 14

TestUserXattrAutoImportFunction · 0.92
userXattrCrc32cHashFunction · 0.92
IsSGWriteMethod · 0.92
IsSGWriteMethod · 0.92
getCurrentVersionMethod · 0.92
setOldRevisionJSONPtrMethod · 0.92
TestBackupOldRevisionFunction · 0.92
postWriteUpdateHLVMethod · 0.92

Calls 1

Crc32cHashFunction · 0.85