Internet Direct (Indy)
Home
PreviousUpNext
TIdHash32.HashValue Method (string)

Implements calculation of a hash value for input data.

Pascal
function HashValue(
    const ASrc: string
): LongWord; overload;
Parameters 
Description 
ASrc 
String containing data used to calculate the hash value. 

LongWord - Hash value for the input data.

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 the overloaded implementation to calculate the hash value.

TIdHashCRC32 

IndySupport TIdHash32.HashValue

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.