Initializing help system before first use

hashmix

hashmix


Purpose
Compute a hash value of a data buffer.
Synopsis
unsigned int hashmix(XPRMcontext ctx,unsigned int hv,const void *buf,size_t len);
Arguments
ctx 
Mosel's execution context
hv 
An initial hash value
buf 
Data buffer to process
len 
Size of the data buffer
Return value
Hash value for the given data buffer.
Further information
This function computes a hash value for a given data buffer, it can be used for implementing the XPRM_CPY_HASH option of the module type function copy (See section Table of types). The provided initial value hv can be used to combine a list of buffers by using the returned value of a previous call as input for the following.