Currently, cursor->next expects a record struct to be passed in, which it populates with a record retrieved from the dictionary. This is cumbersome to the user, as they are expected to manually malloc the members of the struct. This also requires knowledge of how to retrieve the key and value size from within the dictionary.
Proposal: Possible remove the need for the record struct, or develop a helper method to build the record for the user, or any other idea that might be a better option.
Currently,
cursor->next
expects arecord
struct to be passed in, which it populates with a record retrieved from the dictionary. This is cumbersome to the user, as they are expected to manuallymalloc
the members of the struct. This also requires knowledge of how to retrieve the key and value size from within the dictionary.Example:
Proposal: Possible remove the need for the record struct, or develop a helper method to build the record for the user, or any other idea that might be a better option.