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

Function EncodeTimeDescending

pkg/util/encoding/encoding.go:1214–1216  ·  view source on GitHub ↗

EncodeTimeDescending is the descending version of EncodeTimeAscending.

(b []byte, t time.Time)

Source from the content-addressed store, hash-verified

1212
1213// EncodeTimeDescending is the descending version of EncodeTimeAscending.
1214func EncodeTimeDescending(b []byte, t time.Time) []byte {
1215 return encodeTime(b, ^t.Unix(), ^int64(t.Nanosecond()))
1216}
1217
1218func encodeTime(b []byte, unix, nanos int64) []byte {
1219 // Read the unix absolute time. This is the absolute time and is

Callers

nothing calls this directly

Calls 1

encodeTimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…