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

Function iteratorBytesEqual

iterator.go:289–301  ·  view source on GitHub ↗
(a, b []byte)

Source from the content-addressed store, hash-verified

287}
288
289func iteratorBytesEqual(a, b []byte) bool {
290 i := len(a)
291 if i != len(b) {
292 return false
293 }
294 for i > 0 { // Optimization to compare right-hand-side of keys first.
295 i--
296 if a[i] != b[i] {
297 return false
298 }
299 }
300 return true
301}
302
303func (iter *iterator) SeekTo(seekToKey []byte) error {
304 key, _, err := iter.Current()

Callers 1

NextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…