Lines Matching refs:k
121 MDB_val k, v; in DBA_FETCH_FUNC() local
134 k.mv_size = keylen; in DBA_FETCH_FUNC()
135 k.mv_data = key; in DBA_FETCH_FUNC()
137 rc = mdb_get(LMDB_IT(txn), LMDB_IT(dbi), &k, &v); in DBA_FETCH_FUNC()
163 MDB_val k, v; in DBA_UPDATE_FUNC() local
171 k.mv_size = keylen; in DBA_UPDATE_FUNC()
172 k.mv_data = key; in DBA_UPDATE_FUNC()
176 rc = mdb_put(LMDB_IT(txn), LMDB_IT(dbi), &k, &v, mode == 1 ? MDB_NOOVERWRITE : 0); in DBA_UPDATE_FUNC()
198 MDB_val k, v; in DBA_EXISTS_FUNC() local
210 k.mv_size = keylen; in DBA_EXISTS_FUNC()
211 k.mv_data = key; in DBA_EXISTS_FUNC()
213 rc = mdb_get(LMDB_IT(txn), LMDB_IT(dbi), &k, &v); in DBA_EXISTS_FUNC()
234 MDB_val k; in DBA_DELETE_FUNC() local
242 k.mv_size = keylen; in DBA_DELETE_FUNC()
243 k.mv_data = key; in DBA_DELETE_FUNC()
245 rc = mdb_del(LMDB_IT(txn), LMDB_IT(dbi), &k, NULL); in DBA_DELETE_FUNC()
265 MDB_val k, v; in DBA_FIRSTKEY_FUNC() local
281 rc = mdb_cursor_get(LMDB_IT(cur), &k, &v, MDB_FIRST); in DBA_FIRSTKEY_FUNC()
292 if(k.mv_data) { in DBA_FIRSTKEY_FUNC()
293 if(newlen) *newlen = k.mv_size; in DBA_FIRSTKEY_FUNC()
294 ret = estrndup(k.mv_data, k.mv_size); in DBA_FIRSTKEY_FUNC()
305 MDB_val k, v; in DBA_NEXTKEY_FUNC() local
314 rc = mdb_cursor_get(LMDB_IT(cur), &k, &v, MDB_NEXT); in DBA_NEXTKEY_FUNC()
325 if(k.mv_data) { in DBA_NEXTKEY_FUNC()
326 if(newlen) *newlen = k.mv_size; in DBA_NEXTKEY_FUNC()
327 ret = estrndup(k.mv_data, k.mv_size); in DBA_NEXTKEY_FUNC()