6
I have a B+ tree that acts as the index of a data file. This index must be saved in an index file.
A struct node
or node of the B+ tree is:
typedef struct node
{
void ** pointers;
int * keys;
struct node * parent;
bool is_leaf;
int num_keys;.
} node;
How to save this index done in B+ tree in a file, and how to later recover the index to memory from this same file? If possible an implementation of this case or an example, to complement the explanation.
Could you give more information about the members of this structure, that is, what structures/types the pointers are pointing to? There are other structures involved?
– rodrigogq