shithub: hmap

ref: d789157f513b2c3f324e00401f7e72e6010b6211
dir: hmap/hash.h

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

typedef struct Hmap Hmap;
struct Hmap {
	uvlong (*hash)(void*);
	int (*cmp)(void*,void*);
	Rune nodeverb;

	int size;
	usize nsize;

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