currentKey returns the array position and the key pointed to by the cursor.
()
| 374 | |
| 375 | // currentKey returns the array position and the key pointed to by the cursor. |
| 376 | func (c *segmentCursor) currentKey() (idx int, key []byte) { |
| 377 | if c.curr >= c.start && c.curr < c.end { |
| 378 | idx = c.curr |
| 379 | _, key, _ = c.s.getOperationKeyVal(c.curr) |
| 380 | } |
| 381 | return |
| 382 | } |
| 383 | |
| 384 | func (a *segment) Cursor(startKeyInclusive []byte, endKeyExclusive []byte) ( |
| 385 | SegmentCursor, error) { |
no test coverage detected