func (iter *Iterator) ValidForPrefix(prefix []byte) bool {
	if C.rocksdb_iter_valid(iter.c) == 0 {
		return false
	}

	key := iter.Key()
	result := bytes.HasPrefix(key.Data(), prefix)
	key.Free()
	return result
}
// ValidForPrefix returns false only when an Iterator has iterated past the
// first or the last key in the database or the specified prefix.
ValidForPrefix returns false only when an Iterator has iterated past the
first or the last key in the database or the specified prefix.
// ValidForPrefix returns false only when an Iterator has iterated past the // first or the last key in the database or the specified prefix .
func (iter *Iterator) ValidForPrefix(prefix []byte) bool {
	if C.rocksdb_iter_valid(iter.c) == 0 {
		return false
	}
	key := iter.Key()
	result := bytes.HasPrefix(key.Data(), prefix)
	key.Free()
	return result
}
func ( iter * Iterator ) ValidForPrefix ( prefix [ ] byte ) bool { if C . rocksdb_iter_valid ( iter . c ) == 0 { return false } key := iter . Key ( ) result := bytes . HasPrefix ( key . Data ( ) , prefix ) key . Free ( ) return result }
ValidForPrefix returns false only when an Iterator has iterated past the
first or the last key in the database or the specified prefix.
ValidForPrefix returns false only when an Iterator has iterated past the first or the last key in the database or the specified prefix .