DBIterator.atPosition constructor

DBIterator.atPosition({
  1. required Pointer<leveldb_iterator_t> dbptr,
  2. Position<RawData>? initialPosition,
})

Implementation

factory DBIterator.atPosition({
  required Pointer<leveldb_iterator_t> dbptr,
  Position<RawData>? initialPosition,
}) {
  final itr = _DBIterator.ptr(Lib.levelDB, dbptr);
  initialPosition?.setPosition(itr);
  return itr;
}