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

Function EncodeArrayValue

pkg/util/encoding/encoding.go:1891–1894  ·  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, colID uint32, data []byte)

Source from the content-addressed store, hash-verified

1889// EncodeArrayValue encodes a byte array value with its value tag, appends it to
1890// the supplied buffer, and returns the final buffer.
1891func EncodeArrayValue(appendTo []byte, colID uint32, data []byte) []byte {
1892 appendTo = EncodeValueTag(appendTo, colID, Array)
1893 return EncodeUntaggedBytesValue(appendTo, data)
1894}
1895
1896// EncodeTimeValue encodes a time.Time value with its value tag, appends it to
1897// 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…