MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / decodeHashLike

Method decodeHashLike

pkg/util/uuid/codec.go:117–123  ·  view source on GitHub ↗

decodeHashLike decodes UUID strings that are using the following format: "6ba7b8109dad11d180b400c04fd430c8".

(t []byte)

Source from the content-addressed store, hash-verified

115//
116// "6ba7b8109dad11d180b400c04fd430c8".
117func (u *UUID) decodeHashLike(t []byte) error {
118 src := t[:]
119 dst := u[:]
120
121 _, err := hex.Decode(dst, src)
122 return err
123}
124
125// decodeHyphenated decodes UUID strings that are using the following format:
126//

Callers 1

decodeHyphenatedMethod · 0.95

Calls 1

DecodeMethod · 0.65

Tested by

no test coverage detected