|
Hanstable
1.0.0
Simple hash table implementation in C
|
#include <hanstable.h>
Data Fields | |
| struct ht_HashtableEntry ** | buckets |
| unsigned int | numEntries |
| unsigned int | numBuckets |
| unsigned int | initialCapacity |
The hash table itself.
| struct ht_HashtableEntry** buckets |
The big array of entries. Reading/writing formally forbidden.
| unsigned int initialCapacity |
The initial capacity for entries. The hash table will not shrink below this value. Reading/writing formally allowed; change this member when the expected number of entries changes.
| unsigned int numBuckets |
The number of total buckets available to place entries in. Writing formally forbidden, reading allowed.
| unsigned int numEntries |
The amount of entries in memory. Writing formally forbidden, reading allowed.