Skip to content

TFPHashList.FindWithHash

Find first element with given name and hash value.

Declaration

Source position: contnrs.pp line 266

public 
function TFPHashList.FindWithHash(const AName: RawByteString; 
                                 AHash: LongWord) : Pointer;

Description

FindWithHash searches for the item with key AName. It uses the provided hash value AHash to perform the search. If the item exists, the data pointer is returned, if not, the result is Nil.

See also

Name Description
TFPHashList.HashOfIndex Return the hash value of an item by index.
TFPHashList.NameOfIndex Returns the key name of an item by index.
TFPHashList.IndexOf Return the index of the data pointer.
TFPHashList.Find Find data associated with key.
TFPHashList.FindIndexOf Return index of named item.