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

Function DecodeTimeTZValue

pkg/util/encoding/encoding.go:3000–3006  ·  view source on GitHub ↗

DecodeTimeTZValue decodes a value encoded by EncodeTimeTZValue.

(b []byte)

Source from the content-addressed store, hash-verified

2998
2999// DecodeTimeTZValue decodes a value encoded by EncodeTimeTZValue.
3000func DecodeTimeTZValue(b []byte) (remaining []byte, t timetz.TimeTZ, err error) {
3001 b, err = decodeValueTypeAssert(b, TimeTZ)
3002 if err != nil {
3003 return b, timetz.TimeTZ{}, err
3004 }
3005 return DecodeUntaggedTimeTZValue(b)
3006}
3007
3008// DecodeUntaggedTimeTZValue decodes a value encoded by EncodeUntaggedTimeTZValue.
3009func DecodeUntaggedTimeTZValue(b []byte) (remaining []byte, t timetz.TimeTZ, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…