objectGetNthDataRange returns the byte subslice and jEntry of the given nth entry. If the container is an object, the i-th entry is the i-th key, and the (i+length)-th entry is the i-th value.
(n int)
| 344 | // If the container is an object, the i-th entry is the i-th key, and the |
| 345 | // (i+length)-th entry is the i-th value. |
| 346 | func (j *jsonEncoded) objectGetNthDataRange(n int) ([]byte, jEntry, error) { |
| 347 | begin, end, entry, err := j.getNthEntryBounds(n) |
| 348 | if err != nil { |
| 349 | return nil, jEntry{}, err |
| 350 | } |
| 351 | return j.objectGetDataRange(begin, end), entry, nil |
| 352 | } |
| 353 | |
| 354 | // objectNthValue returns the nth value in the sorted-by-key representation of |
| 355 | // the object. |
no test coverage detected