unsigned int qHashFnv32 ( unsigned int  max,
const void *  data,
size_t  nbytes 
)

Get FNV32 hash integer

Parameters:
max hash range. 0 ~ (max-1). Set to 0 for full range
data source data
nbytes size of data
Returns:
FNV32 hash integer
   unsigned int fnv32;

   fnv32 = qHashFnv32(0, (void*)"hello", 5);
   printf("%u\n", fnv32);

   fnv32 = qHashFnv32(1000, (void*)"hello", 5);
   printf("%u\n", fnv32);

Definition at line 194 of file qHash.c.


Generated on Mon Mar 26 07:00:51 2018 for JSOC_Documentation by  doxygen 1.5.7.1