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

Function encodeTimeTZ

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

Source from the content-addressed store, hash-verified

1450}
1451
1452func encodeTimeTZ(b []byte, unixMicros int64, offsetSecs int32) []byte {
1453 b = append(b, timeTZMarker)
1454 b = EncodeVarintAscending(b, unixMicros)
1455 b = EncodeVarintAscending(b, int64(offsetSecs))
1456 return b
1457}
1458
1459// DecodeTimeTZAscending decodes a timetz.TimeTZ value which was encoded
1460// 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…