RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Generics.Defaults.BobJenkinsHash Function

BobJenkinsHash is used to generate the hash code of a memory block.

Pascal
function BobJenkinsHash(const Data; Len: Integer; InitData: Integer): Integer;
C++
int BobJenkinsHash(const  Data, int Len, int InitData);

Use BobJenkinsHash to generate the hash code of a memory block. Data points to the memory block for which the hash is generated. Len specifies the length of the memory block. InitData is a value used in the calculation of the hash code (usually zero).  

BobJenkinsHash can be used by applications that need to calculate hash codes for custom data types. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!