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

Function encodeTime

pkg/util/encoding/encoding.go:1218–1225  ·  view source on GitHub ↗
(b []byte, unix, nanos int64)

Source from the content-addressed store, hash-verified

1216}
1217
1218func encodeTime(b []byte, unix, nanos int64) []byte {
1219 // Read the unix absolute time. This is the absolute time and is
1220 // not time zone offset dependent.
1221 b = append(b, timeMarker)
1222 b = EncodeVarintAscending(b, unix)
1223 b = EncodeVarintAscending(b, nanos)
1224 return b
1225}
1226
1227// DecodeTimeAscending decodes a time.Time value which was encoded using
1228// EncodeTime. The remainder of the input buffer and the decoded

Callers 2

EncodeTimeAscendingFunction · 0.85
EncodeTimeDescendingFunction · 0.85

Calls 1

EncodeVarintAscendingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…