(a, b []byte)
| 287 | } |
| 288 | |
| 289 | func 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 | |
| 303 | func (iter *iterator) SeekTo(seekToKey []byte) error { |
| 304 | key, _, err := iter.Current() |
no outgoing calls
no test coverage detected
searching dependent graphs…