shithub: hmap

ref: 9ae12fa984b9bc0eb0a33f9c0cf5b4ebd47ecd6d
dir: /hash.h/

View raw version
typedef union Hkey Hkey;
union Hkey {
	void *p;
	int v;
};

typedef struct Hmap Hmap;
struct Hmap {
	uvlong (*hash)(void*);
	int (*cmp)(void*,void*);
	int nbs;
	int nsz;

	int len;
	int cap;
	uchar *nodes;
};