MCPcopy Create free account
hub / github.com/dolthub/doltgresql / FromEncoding

Function FromEncoding

postgres/parser/json/encode.go:227–229  ·  view source on GitHub ↗

FromEncoding returns a JSON value which is lazily decoded.

(b []byte)

Source from the content-addressed store, hash-verified

225
226// FromEncoding returns a JSON value which is lazily decoded.
227func FromEncoding(b []byte) (JSON, error) {
228 return newEncodedFromRoot(b)
229}
230
231func decodeJSONArray(containerHeader uint32, b []byte) ([]byte, JSON, error) {
232 length := containerHeader & containerHeaderLenMask

Callers

nothing calls this directly

Calls 1

newEncodedFromRootFunction · 0.85

Tested by

no test coverage detected