Sign in Join
FPDoc Onlineexperiment

RSHash function

In unit Contnrs

Standard hash value calculating function.

Declaration

pascal
function RSHash(const S: AnsiString; const TableSize: LongWord)
: LongWord

Arguments

S

String to calculate hash value from.

TableSize

Hash table size.

Function result

Hash value.

Description

RSHash is the standard hash calculating function used in the TFPCustomHashTable hash class. It's Robert Sedgwick's "Algorithms in C" hash function.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.