MCPcopy Create free account
hub / github.com/couchbase/moss / Cursor

Method Cursor

segment.go:384–396  ·  view source on GitHub ↗
(startKeyInclusive []byte, endKeyExclusive []byte)

Source from the content-addressed store, hash-verified

382}
383
384func (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
398func (a *segment) Get(key []byte) (operation uint64, val []byte, err error) {
399 var pos int

Callers

nothing calls this directly

Calls 2

LenMethod · 0.95

Tested by

no test coverage detected