sdb icon indicating copy to clipboard operation
sdb copied to clipboard

Hashtable depends on sdb

Open alvarofe opened this issue 8 years ago • 0 comments

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);

alvarofe avatar Jan 04 '17 22:01 alvarofe