(startKeyInclusive []byte, endKeyExclusive []byte)
| 382 | } |
| 383 | |
| 384 | func (a *segment) Cursor(startKeyInclusive []byte, endKeyExclusive []byte) ( |
| 385 | SegmentCursor, error) { |
| 386 | rv := &segmentCursor{ |
| 387 | s: a, |
| 388 | end: a.Len(), |
| 389 | } |
| 390 | rv.start = a.findStartKeyInclusivePos(startKeyInclusive) |
| 391 | if endKeyExclusive != nil { |
| 392 | rv.end = a.findStartKeyInclusivePos(endKeyExclusive) |
| 393 | } |
| 394 | rv.curr = rv.start |
| 395 | return rv, nil |
| 396 | } |
| 397 | |
| 398 | func (a *segment) Get(key []byte) (operation uint64, val []byte, err error) { |
| 399 | var pos int |
nothing calls this directly
no test coverage detected