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

Method encode

pkg/util/json/encode.go:60–65  ·  view source on GitHub ↗
(appendTo []byte)

Source from the content-addressed store, hash-verified

58}
59
60func (j jsonString) encode(appendTo []byte) (e jEntry, b []byte, err error) {
61 if err := checkLength(len(j)); err != nil {
62 return jEntry{}, b, err
63 }
64 return makeStringJEntry(len(j)), append(appendTo, []byte(j)...), nil
65}
66
67func (j jsonNumber) encode(appendTo []byte) (e jEntry, b []byte, err error) {
68 decOffset := len(appendTo)

Callers

nothing calls this directly

Calls 2

checkLengthFunction · 0.85
makeStringJEntryFunction · 0.85

Tested by

no test coverage detected