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

Function EncodeBytesValue

pkg/util/encoding/encoding.go:2639–2642  ·  view source on GitHub ↗

EncodeBytesValue 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

2637// EncodeBytesValue encodes a byte array value with its value tag, appends it to
2638// the supplied buffer, and returns the final buffer.
2639func EncodeBytesValue(appendTo []byte, colIDDelta uint32, data []byte) []byte {
2640 appendTo = EncodeValueTag(appendTo, colIDDelta, Bytes)
2641 return EncodeUntaggedBytesValue(appendTo, data)
2642}
2643
2644// EncodeUntaggedBytesValue encodes a byte array value, appends it to the supplied
2645// 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…