#include <TinyTable.h>
Public Member Functions | |
TinyTable (uint32_t *mem, size_t max) | |
Constructor:. | |
bool | add (const void *ptr) |
Add a pointer = wrap for int. | |
bool | add (uint32_t val) |
Add an int. | |
Static Public Member Functions | |
static size_t | intsizeFor (size_t n) |
Private Attributes | |
uint32_t * | table |
hash table | |
uint32_t | mask |
binary mask = size-1 where size is a power of 2 |
|
Constructor:.
|
|
Add an int. You should add at max n items as used in hash_sizeofTinyTable(n).
|
|
Add a pointer = wrap for int.
|
|
|
|
binary mask = size-1 where size is a power of 2
|
|
hash table
|