[Overview][Types][Classes][Procedures and functions] Reference for unit 'contnrs' (#fcl)

RSHash

Standard hash value calculating function.

Declaration

Source position: contnrs.pp line 255

function RSHash(

  const S: String;

  const TableSize: LongWord

):LongWord;

Arguments

S

  

String to calculate hash value from

TableSize

  

Hash table size

Function result

Hash value

Description

RSHashis the standard hash calculating function used in the TFPHashTablehash class. It's Robert Sedgwick's "Algorithms in C" hash function.

Errors

None.

See also

TFPHashTable

  

Hash class