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

Function EncodeJSONValue

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

Source from the content-addressed store, hash-verified

2010// but with a length prefix, appends it to the supplied buffer, and returns the
2011// final buffer.
2012func EncodeJSONValue(appendTo []byte, colID uint32, data []byte) []byte {
2013 appendTo = EncodeValueTag(appendTo, colID, JSON)
2014 return EncodeUntaggedBytesValue(appendTo, data)
2015}
2016
2017// DecodeValueTag decodes a value encoded by EncodeValueTag, used as a prefix in
2018// 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…