objectNthValue returns the nth value in the sorted-by-key representation of the object.
(n int)
| 354 | // objectNthValue returns the nth value in the sorted-by-key representation of |
| 355 | // the object. |
| 356 | func (j *jsonEncoded) objectNthValue(n int) (JSON, error) { |
| 357 | data, entry, err := j.objectGetNthDataRange(j.containerLen + n) |
| 358 | if err != nil { |
| 359 | return nil, err |
| 360 | } |
| 361 | return newEncoded(entry, data) |
| 362 | } |
| 363 | |
| 364 | func parseJEntry(jEntry uint32) (isOff bool, offlen int) { |
| 365 | return (jEntry & jEntryIsOffFlag) != 0, int(jEntry & jEntryOffLenMask) |
no test coverage detected