MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / EncodeUntaggedBytesValue

Function EncodeUntaggedBytesValue

pkg/util/encoding/encoding.go:1884–1887  ·  view source on GitHub ↗

EncodeUntaggedBytesValue encodes a byte array value, appends it to the supplied buffer, and returns the final buffer.

(appendTo []byte, data []byte)

Source from the content-addressed store, hash-verified

1882// EncodeUntaggedBytesValue encodes a byte array value, appends it to the supplied
1883// buffer, and returns the final buffer.
1884func EncodeUntaggedBytesValue(appendTo []byte, data []byte) []byte {
1885 appendTo = EncodeNonsortingUvarint(appendTo, uint64(len(data)))
1886 return append(appendTo, data...)
1887}
1888
1889// EncodeArrayValue encodes a byte array value with its value tag, appends it to
1890// the supplied buffer, and returns the final buffer.

Callers 3

EncodeBytesValueFunction · 0.85
EncodeArrayValueFunction · 0.85
EncodeJSONValueFunction · 0.85

Calls 1

EncodeNonsortingUvarintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…