MCPcopy Create free account
hub / github.com/dolthub/doltgresql / decodeHashLike

Method decodeHashLike

postgres/parser/uuid/codec.go:170–176  ·  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

168//
169// "6ba7b8109dad11d180b400c04fd430c8".
170func (u *UUID) decodeHashLike(t []byte) error {
171 src := t[:]
172 dst := u[:]
173
174 _, err := hex.Decode(dst, src)
175 return err
176}
177
178// decodeBraced decodes UUID strings that are using the following formats:
179//

Callers 2

UnmarshalTextMethod · 0.95
decodePlainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected