sdb
sdb copied to clipboard
Hashtable depends on sdb
There should be an independent ht implementation on sdb.
Right now everything must be an string in order to work properly, but the idea would be to have an agnostic ht and sdb must use a specialized version setting parameters in SdbHash for its need.
Another example in SdbHash
typedef void (*HtKvFreeFunc)(SdbKv*);
typedef char* (*DupKey)(const char*);
typedef char* (*DupValue)(const char*);
typedef size_t (*CalcSize)(const char*);
typedef ut32 (*HashFunction)(const char*);
typedef int (*ListComparator)(const char *a, const char *b);