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

Function EncodeJSONValue

pkg/util/encoding/encoding.go:2814–2817  ·  view source on GitHub ↗

EncodeJSONValue encodes an already-byte-encoded JSON 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

2812// but with a length prefix, appends it to the supplied buffer, and returns the
2813// final buffer.
2814func EncodeJSONValue(appendTo []byte, colIDDelta uint32, data []byte) []byte {
2815 appendTo = EncodeValueTag(appendTo, colIDDelta, JSON)
2816 return EncodeUntaggedBytesValue(appendTo, data)
2817}
2818
2819// EncodeTSQueryValue encodes an already-byte-encoded TSQuery value with no
2820// value tag but with a length prefix, appends it to the supplied buffer, and

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…