diff --git a/leveldb/iterator.go b/leveldb/iterator.go index bb076d1..3de0965 100644 --- a/leveldb/iterator.go +++ b/leveldb/iterator.go @@ -136,6 +136,14 @@ func (it *Iterator) Next() { } } +func (it *Iterator) Skip(offset int64) { + for i := 0; i < offset; i++ { + if it.Valid() { + it.Next() + } + } +} + func (it *Iterator) Key() []byte { return it.it.Key() }