Internet Direct (Indy) Version 9.0.2 Beta
TIdHash32.HashValue
Implements calculation of a hash value for input data.

function HashValue(ASrc: string): LongWord; overload;
function HashValue(AStream: TStream): LongWord; virtual; abstract; overload;
Parameters
ASrc: string
Stream containing data used to calculate the hash value.

Returns
LongWord - 32-bit hash value for the input data.

Description
HashValue is an overloaded LongWord function in TIdHash32 that specifies the mechanism used to calculate the 32-bit hash value for the input data.

The stream-based variant of HashValue is an abstract virtual function that must be reimplemented in a descendant class, like TIdHashCRC32, to support the specifics of the hashing algorithm. The string-based variant of HashValue relies on this implementation to calculate the hash value.