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

Method Current

segment.go:340–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338}
339
340func (c *segmentCursor) Current() (operation uint64, key []byte, val []byte) {
341 if c.curr >= c.start && c.curr < c.end {
342 operation, key, val = c.s.getOperationKeyVal(c.curr)
343 }
344 return
345}
346
347func (c *segmentCursor) Seek(startKeyInclusive []byte) error {
348 c.curr = c.s.findStartKeyInclusivePos(startKeyInclusive)

Callers

nothing calls this directly

Calls 1

getOperationKeyValMethod · 0.80

Tested by

no test coverage detected