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

Function DecodeTimeValue

pkg/util/encoding/encoding.go:2977–2983  ·  view source on GitHub ↗

DecodeTimeValue decodes a value encoded by EncodeTimeValue.

(b []byte)

Source from the content-addressed store, hash-verified

2975
2976// DecodeTimeValue decodes a value encoded by EncodeTimeValue.
2977func DecodeTimeValue(b []byte) (remaining []byte, t time.Time, err error) {
2978 b, err = decodeValueTypeAssert(b, Time)
2979 if err != nil {
2980 return b, time.Time{}, err
2981 }
2982 return DecodeUntaggedTimeValue(b)
2983}
2984
2985// DecodeUntaggedTimeValue decodes a value encoded by EncodeUntaggedTimeValue.
2986func DecodeUntaggedTimeValue(b []byte) (remaining []byte, t time.Time, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85
DecodeUntaggedTimeValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…