shithub: hmap

ref: 1edcce3e14962a3642ff07d95770128cee95c5b5
dir: hmap/hash.h

View raw version
typedef struct Hnode Hnode;
struct Hnode {
	int filled;
	int next;
};

typedef struct Hmap Hmap;
struct Hmap {
	int (*fmt)(Fmt*);
	Rune fmtsep;

	uvlong (*hash)(void*);
	int (*cmp)(void*,void*);
	int nbs;
	int nsz;

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