public void SeekToLast()
 {
     Native.leveldb_iter_seek_to_last(handle);
 }
 public bool Valid()
 {
     return Native.leveldb_iter_valid(handle);
 }
 public void SeekToFirst()
 {
     Native.leveldb_iter_seek_to_first(handle);
 }
 public void Seek(Slice target)
 {
     Native.leveldb_iter_seek(handle, target.buffer, (UIntPtr)target.buffer.Length);
 }
 public void Prev()
 {
     Native.leveldb_iter_prev(handle);
     CheckError();
 }
 public void Next()
 {
     Native.leveldb_iter_next(handle);
     CheckError();
 }
 private void CheckError()
 {
     IntPtr error;
     Native.leveldb_iter_get_error(handle, out error);
     NativeHelper.CheckError(error);
 }