Hanstable  1.0.0
Simple hash table implementation in C
ht_HashtableEntry Struct Reference

#include <hanstable.h>

Data Fields

uint64_t hash
 
const char * key
 
void * content
 
struct ht_HashtableEntrynext
 

Detailed Description

An entry in the hash table

Field Documentation

void* content

The pointer to store in the hash table. Reading/writing formally MANDATORY. Seriously.

uint64_t hash

The hash of the key (not the index!) of the entry. Reading/writing formally forbidden.

const char* key

The actual key. Must be NUL-terminated. Does not have to be text. Writing formally forbidden, reading allowed.

struct ht_HashtableEntry* next

The next entry if two entries collide into the same bucket. Reading/writing formally forbidden.


The documentation for this struct was generated from the following file: