Btree-source-code icon indicating copy to clipboard operation
Btree-source-code copied to clipboard

How to use the btree2v API for inserts and reads

Open Ankithboggaram opened this issue 2 years ago • 0 comments

Hello,

We are trying to integrate your btree2v into our project. We want to use the insert and read APIs, but we are not sure what values to pass to these functions:

extern uid bt_findkey  (BtDb *bt, unsigned char *key, uint len);
extern BTERR  bt_insertkey (BtDb *bt, unsigned char *key, uint len, uint lvl, uid id, uint tod);

As a user of the b-tree, we know the key and value but we are unsure as to how to use this API. Your help would be much appreciated.

Ankithboggaram avatar Nov 26 '23 18:11 Ankithboggaram