// Seek moves the iterator to the position greater than or equal to the key. func (iter *Iterator) Seek(key []byte) { cKey := byteToChar(key) iter.isValid = C.rocksdb_iter_seek_ext(iter.c, cKey, C.size_t(len(key))) }
func (it *Iterator) Seek(key []byte) { it.isValid = C.rocksdb_iter_seek_ext(it.it, (*C.char)(unsafe.Pointer(&key[0])), C.size_t(len(key))) }