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

Function EncodeTimeValue

pkg/util/encoding/encoding.go:2660–2663  ·  view source on GitHub ↗

EncodeTimeValue encodes a time.Time value with its value tag, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colIDDelta uint32, t time.Time)

Source from the content-addressed store, hash-verified

2658// EncodeTimeValue encodes a time.Time value with its value tag, appends it to
2659// the supplied buffer, and returns the final buffer.
2660func EncodeTimeValue(appendTo []byte, colIDDelta uint32, t time.Time) []byte {
2661 appendTo = EncodeValueTag(appendTo, colIDDelta, Time)
2662 return EncodeUntaggedTimeValue(appendTo, t)
2663}
2664
2665// EncodeUntaggedTimeValue encodes a time.Time value, appends it to the supplied buffer,
2666// and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85
EncodeUntaggedTimeValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…