Topic Path: Symbol Reference > Classes > TIdHash16 Class > TIdHash16 Methods > HashValue Method > HashValue Method (string)
ContentsIndexHome
PreviousUpNext
TIdHash16.HashValue Method (string)
function HashValue(
    const ASrc: string
): Word; overload;
Parameters 
Description 
ASrc 
String containing data used to calculate the hash value. 

Word - 16-bit hash value for the input data.

HashValue is an overloaded Word function in TIdHash16 that specifies the mechanism used to calculate the 16-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 TIdHashCRC16, to support the specifics of the hashing algorithm. 

The string-based variant of HashValue relies on the overloaded implementation to calculate the hash value.

TIdHash16.HashValue 

TIdHashCRC16 

IndySupport

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.