lbry-rocksdb/rocksdb/iterator.pxd
2017-04-23 19:32:41 +08:00

16 lines
573 B
Cython

from libcpp cimport bool as cpp_bool
from slice_ cimport Slice
from status cimport Status
cdef extern from "rocksdb/iterator.h" namespace "rocksdb":
cdef cppclass Iterator:
cpp_bool Valid() nogil except+
void SeekToFirst() nogil except+
void SeekToLast() nogil except+
void Seek(const Slice&) nogil except+
void Next() nogil except+
void Prev() nogil except+
void SeekForPrev(const Slice&) nogil except+
Slice key() nogil except+
Slice value() nogil except+
Status status() nogil except+