Electroneum
slabhash Struct Reference

#include <slabhash.h>

Collaboration diagram for slabhash:

Public Attributes

size_t size
 
uint32_t mask
 
unsigned int shift
 
struct lruhash ** array
 

Detailed Description

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.

Member Data Documentation

◆ array

struct lruhash** slabhash::array

lookup array of hash tables

Definition at line 65 of file slabhash.h.

◆ mask

uint32_t slabhash::mask

size bitmask - uses high bits.

Definition at line 61 of file slabhash.h.

◆ shift

unsigned int slabhash::shift

shift right this many bits to get index into array.

Definition at line 63 of file slabhash.h.

◆ size

size_t slabhash::size

the size of the array - must be power of 2

Definition at line 59 of file slabhash.h.


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