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

Function EncodeTimeTZValue

pkg/util/encoding/encoding.go:2674–2677  ·  view source on GitHub ↗

EncodeTimeTZValue encodes a timetz.TimeTZ value with its value tag, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colIDDelta uint32, t timetz.TimeTZ)

Source from the content-addressed store, hash-verified

2672// EncodeTimeTZValue encodes a timetz.TimeTZ value with its value tag, appends it to
2673// the supplied buffer, and returns the final buffer.
2674func EncodeTimeTZValue(appendTo []byte, colIDDelta uint32, t timetz.TimeTZ) []byte {
2675 appendTo = EncodeValueTag(appendTo, colIDDelta, TimeTZ)
2676 return EncodeUntaggedTimeTZValue(appendTo, t)
2677}
2678
2679// EncodeUntaggedTimeTZValue encodes a time.Time value, appends it to the supplied buffer,
2680// and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…