|
Electroneum
|
#include <slabhash.h>

Public Attributes | |
| size_t | size |
| uint32_t | mask |
| unsigned int | shift |
| struct lruhash ** | array |
Hash table formed from several smaller ones. This results in a partitioned lruhash table, a 'slashtable'. None of the data inside the slabhash may be altered. Therefore, no locks are needed to access the structure.
Definition at line 57 of file slabhash.h.
| struct lruhash** slabhash::array |
lookup array of hash tables
Definition at line 65 of file slabhash.h.
| uint32_t slabhash::mask |
size bitmask - uses high bits.
Definition at line 61 of file slabhash.h.
| unsigned int slabhash::shift |
shift right this many bits to get index into array.
Definition at line 63 of file slabhash.h.
| size_t slabhash::size |
the size of the array - must be power of 2
Definition at line 59 of file slabhash.h.