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