objectNthValue returns the nth value in the sorted-by-key representation of the object.
(n int)
| 340 | // objectNthValue returns the nth value in the sorted-by-key representation of |
| 341 | // the object. |
| 342 | func (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 | |
| 350 | func parseJEntry(jEntry uint32) (isOff bool, offlen int) { |
| 351 | return (jEntry & jEntryIsOffFlag) != 0, int(jEntry & jEntryOffLenMask) |
no test coverage detected