Function PGAUtilHash
Defined in File utility.c
Function Documentation
-
PGAHash PGAUtilHash(const void *data, size_t len, PGAHash hashv)
Hashing utility function.
Description
This is Bob Jenkins’ hash function as implemented in the uthash project. The last parameter is the previous hash (if hashing different pieces), use
PGA_INITIAL_HASH
for the first hash.- Parameters:
data – pointer to data to hash
len – length of data
hashv – previous hash, use PGA_INITIAL_HASH if first
- Returns:
hash over data