ROHC compression/decompression library
Functions
hashtable.c File Reference

Efficient, secure hash table. More...

#include "hashtable.h"
#include "csiphash.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
Include dependency graph for hashtable.c:

Functions

bool hashtable_new (struct hashtable *const hashtable, const size_t key_len, const size_t size)
 
void hashtable_free (struct hashtable *const hashtable)
 
void hashtable_add (struct hashtable *const hashtable, const void *const key, void *const elem)
 
void * hashtable_get (const struct hashtable *const hashtable, const void *const key)
 
void hashtable_del (struct hashtable *const hashtable, const void *const key)
 

Detailed Description

Efficient, secure hash table.

Author
Didier Barvaux didie.nosp@m.r.ba.nosp@m.rvaux.nosp@m.@tou.nosp@m.louse.nosp@m..viv.nosp@m.eris..nosp@m.com

Function Documentation

◆ hashtable_add()

void hashtable_add ( struct hashtable *const  hashtable,
const void *const  key,
void *const  elem 
)

◆ hashtable_del()

void hashtable_del ( struct hashtable *const  hashtable,
const void *const  key 
)

◆ hashtable_free()

void hashtable_free ( struct hashtable *const  hashtable)

◆ hashtable_get()

void* hashtable_get ( const struct hashtable *const  hashtable,
const void *const  key 
)

◆ hashtable_new()

bool hashtable_new ( struct hashtable *const  hashtable,
const size_t  key_len,
const size_t  size 
)