The qDecoder Project

Q_HASHARR Struct Reference

Structure for hash-table data structure based on array. More…


Data Fields

int count
int hash
char key [_Q_HASHARR_MAX_KEYSIZE]
int keylen
unsigned char keymd5 [16]
unsigned char value [_Q_HASHARR_DEF_VALUESIZE]
int size
int link


Detailed Description

Structure for hash-table data structure based on array.


Field Documentation

int Q_HASHARR::count

hash collision counter. 0 indicates empty slot, -1 is used for moved slot due to hash collision, -2 is used for indicating linked block

int Q_HASHARR::hash

key hash. we use qFnv32Hash() to generate hash integer

char Q_HASHARR::key[_Q_HASHARR_MAX_KEYSIZE]

key string, it can be truncated

int Q_HASHARR::keylen

original key length

unsigned char Q_HASHARR::keymd5[16]

md5 hash of the key

unsigned char Q_HASHARR::value[_Q_HASHARR_DEF_VALUESIZE]

value

int Q_HASHARR::size

value size

int Q_HASHARR::link

next index of the value


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

[Home] [About] [Examples] [Changes] [Download] [SVN Repository] [Install] [Reference]