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

Function DecodeTimeDescending

pkg/util/encoding/encoding.go:1239–1245  ·  view source on GitHub ↗

DecodeTimeDescending is the descending version of DecodeTimeAscending.

(b []byte)

Source from the content-addressed store, hash-verified

1237
1238// DecodeTimeDescending is the descending version of DecodeTimeAscending.
1239func DecodeTimeDescending(b []byte) ([]byte, time.Time, error) {
1240 b, sec, nsec, err := decodeTime(b)
1241 if err != nil {
1242 return b, time.Time{}, err
1243 }
1244 return b, timeutil.Unix(^sec, ^nsec), nil
1245}
1246
1247func decodeTime(b []byte) (r []byte, sec int64, nsec int64, err error) {
1248 if PeekType(b) != Time {

Callers 1

prettyPrintFirstValueFunction · 0.85

Calls 2

UnixFunction · 0.92
decodeTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…