System.Hash.THashBobJenkins.GetHashValue
Delphi
class function GetHashValue(const AData: string): Integer; overload; static; inline;
class function GetHashValue(const AData; ALength: Integer; AInitialValue: Integer = 0): Integer; overload; static; inline;
C++
static int __fastcall GetHashValue(const System::UnicodeString AData)/* overload */;
static int __fastcall GetHashValue(const void *AData, int ALength, int AInitialValue = 0x0)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Hash.pas System.Hash.hpp |
System.Hash | THashBobJenkins |
Description
Creates a hash digest from the provided data and returns the value of the created digest as an Integer.
You can specify the AData
parameter as:
- A String.
- Any other type, if you also specify the length of the provided data. In this case, you can specify the optional parameter
AInitialValue
. The default value ofAInitialValue
is 0.