Lines Matching refs:k
122 MDB_val k, v; in DBA_FETCH_FUNC() local
135 k.mv_size = keylen; in DBA_FETCH_FUNC()
136 k.mv_data = key; in DBA_FETCH_FUNC()
138 rc = mdb_get(LMDB_IT(txn), LMDB_IT(dbi), &k, &v); in DBA_FETCH_FUNC()
164 MDB_val k, v; in DBA_UPDATE_FUNC() local
172 k.mv_size = keylen; in DBA_UPDATE_FUNC()
173 k.mv_data = key; in DBA_UPDATE_FUNC()
177 rc = mdb_put(LMDB_IT(txn), LMDB_IT(dbi), &k, &v, mode == 1 ? MDB_NOOVERWRITE : 0); in DBA_UPDATE_FUNC()
199 MDB_val k, v; in DBA_EXISTS_FUNC() local
211 k.mv_size = keylen; in DBA_EXISTS_FUNC()
212 k.mv_data = key; in DBA_EXISTS_FUNC()
214 rc = mdb_get(LMDB_IT(txn), LMDB_IT(dbi), &k, &v); in DBA_EXISTS_FUNC()
235 MDB_val k; in DBA_DELETE_FUNC() local
243 k.mv_size = keylen; in DBA_DELETE_FUNC()
244 k.mv_data = key; in DBA_DELETE_FUNC()
246 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()