MCPcopy Index your code
hub / github.com/perkeep/perkeep / current

Method current

pkg/sorted/buffer/buffer.go:226–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224}
225
226func (it *iter) current() *subIter {
227 switch {
228 case it.back.eof:
229 return &it.buf
230 case it.buf.eof:
231 return &it.back
232 case it.buf.key <= it.back.key:
233 return &it.buf
234 default:
235 return &it.back
236 }
237}
238
239func (it *iter) Next() bool {
240 // Call Next on both iterators for the first time, if we haven't

Callers 4

KeyMethod · 0.95
ValueMethod · 0.95
KeyBytesMethod · 0.95
ValueBytesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected