Ejemplo n.º 1
0
// 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)))
}
Ejemplo n.º 2
0
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)))
}