Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
P6API P6UINT32 P6CCALL P6R::p6HashData ( const P6UINT8 *  pData,
P6SIZE  cData,
P6UINT32  hash 
)

An implementation of Paul Hsieh's super fast hash for arbitrary non-NULL terminated data.

Parameters
pData[ in ] A pointer to the data to hash.
cData[ in ] The number of bytes of pData to include in the hash calculation.
hash[ in ] The current hash value. This is used to enable incremental hashing where the output of the previous call is passed back in this argument on the following call. This must be initialized to zero on the first call.
Returns
The hash of the specified data.