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

Method nextDelta

segment.go:367–373  ·  view source on GitHub ↗

nextDelta advances the cursor position by 'delta' steps.

(delta int)

Source from the content-addressed store, hash-verified

365
366// nextDelta advances the cursor position by 'delta' steps.
367func (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.
376func (c *segmentCursor) currentKey() (idx int, key []byte) {

Callers 1

buildIndexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected