nextDelta advances the cursor position by 'delta' steps.
(delta int)
| 365 | |
| 366 | // nextDelta advances the cursor position by 'delta' steps. |
| 367 | func (c *segmentCursor) nextDelta(delta int) error { |
| 368 | c.curr += delta |
| 369 | if c.curr >= c.end { |
| 370 | return ErrIteratorDone |
| 371 | } |
| 372 | return nil |
| 373 | } |
| 374 | |
| 375 | // currentKey returns the array position and the key pointed to by the cursor. |
| 376 | func (c *segmentCursor) currentKey() (idx int, key []byte) { |