我想使用 将 lmdb 中的所有键读取到一个列表中bufferCursor
,但是我得到了 index out of bound 错误。
String[] keys=new String[keyCount]; //keyCount gives no. of keys in lmdb tree
int count=0;
cursor.first(); //to move to first position
while(cursor.next){
keys[count]= cursor.keyUtf8(0).getString().toString(); //getting error in this line it's working for reading values.
count++l
}