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

Function EncodeArrayValue

pkg/util/encoding/encoding.go:2653–2656  ·  view source on GitHub ↗

EncodeArrayValue encodes a byte array value with its value tag, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, colIDDelta uint32, data []byte)

Source from the content-addressed store, hash-verified

2651// EncodeArrayValue encodes a byte array value with its value tag, appends it to
2652// the supplied buffer, and returns the final buffer.
2653func EncodeArrayValue(appendTo []byte, colIDDelta uint32, data []byte) []byte {
2654 appendTo = EncodeValueTag(appendTo, colIDDelta, Array)
2655 return EncodeUntaggedBytesValue(appendTo, data)
2656}
2657
2658// EncodeTimeValue encodes a time.Time value with its value tag, appends it to
2659// the supplied buffer, and returns the final buffer.

Callers

nothing calls this directly

Calls 2

EncodeValueTagFunction · 0.85
EncodeUntaggedBytesValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…