Sign in Join
FPDoc Onlineexperiment

THashFunction procedure type

In unit Contnrs

Hash calculation function.

Declaration

pascal
THashFunction = function(const S: AnsiString; const TableSize: LongWord)
: LongWord

Arguments

S

String to calculate hash value from.

TableSize

Hash table size.

Function result

Hash value.

Description

THashFunction is the prototype for a hash calculation function. It should calculate a hash of string S, where the hash table size is TableSize. The return value should be the hash value.

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