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

Method objectNthValue

pkg/util/json/encoded.go:342–348  ·  view source on GitHub ↗

objectNthValue returns the nth value in the sorted-by-key representation of the object.

(n int)

Source from the content-addressed store, hash-verified

340// objectNthValue returns the nth value in the sorted-by-key representation of
341// the object.
342func (j *jsonEncoded) objectNthValue(n int) (JSON, error) {
343 data, entry, err := j.objectGetNthDataRange(j.containerLen + n)
344 if err != nil {
345 return nil, err
346 }
347 return newEncoded(entry, data)
348}
349
350func parseJEntry(jEntry uint32) (isOff bool, offlen int) {
351 return (jEntry & jEntryIsOffFlag) != 0, int(jEntry & jEntryOffLenMask)

Callers 1

FetchValKeyMethod · 0.95

Calls 2

objectGetNthDataRangeMethod · 0.95
newEncodedFunction · 0.85

Tested by

no test coverage detected