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

Function encodeTimeTZ

pkg/util/encoding/encoding.go:969–974  ·  view source on GitHub ↗
(b []byte, unixMicros int64, offsetSecs int32)

Source from the content-addressed store, hash-verified

967}
968
969func encodeTimeTZ(b []byte, unixMicros int64, offsetSecs int32) []byte {
970 b = append(b, timeTZMarker)
971 b = EncodeVarintAscending(b, unixMicros)
972 b = EncodeVarintAscending(b, int64(offsetSecs))
973 return b
974}
975
976// DecodeTimeTZAscending decodes a timetz.TimeTZ value which was encoded
977// using encodeTimeTZ. The remainder of the input buffer and the decoded

Callers 2

EncodeTimeTZAscendingFunction · 0.85
EncodeTimeTZDescendingFunction · 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…