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

Function encodeTime

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

Source from the content-addressed store, hash-verified

905}
906
907func encodeTime(b []byte, unix, nanos int64) []byte {
908 // Read the unix absolute time. This is the absolute time and is
909 // not time zone offset dependent.
910 b = append(b, timeMarker)
911 b = EncodeVarintAscending(b, unix)
912 b = EncodeVarintAscending(b, nanos)
913 return b
914}
915
916// DecodeTimeAscending decodes a time.Time value which was encoded using
917// 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…