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

Function EncodePGVectorValue

pkg/util/encoding/encoding.go:2838–2841  ·  view source on GitHub ↗

EncodePGVectorValue encodes an already-byte-encoded PGVector value with no value tag but with a length prefix, 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

2836// value tag but with a length prefix, appends it to the supplied buffer, and
2837// returns the final buffer.
2838func EncodePGVectorValue(appendTo []byte, colIDDelta uint32, data []byte) []byte {
2839 appendTo = EncodeValueTag(appendTo, colIDDelta, PGVector)
2840 return EncodeUntaggedBytesValue(appendTo, data)
2841}
2842
2843// DecodeValueTag decodes a value encoded by EncodeValueTag, used as a prefix in
2844// each of the other EncodeFooValue methods.

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…