Sign in Join
FPDoc Onlineexperiment

TCache.FindSlot function

Member of TCachepublicIn unit CacheCls

Find data pointer in the list.

Declaration

pascal
function FindSlot(AData: Pointer): PCacheSlot

Arguments

AData

Data pointer to look for.

Function result

Slot which contains AData.

Description

FindSlot checks all items in the list, and returns the slot which contains a data pointer that matches the pointer AData.

If no item with data pointer that matches AData is found, Nil is returned.

For this function to work correctly, the OnIsDataEqual event must be set.

Errors

If OnIsDataEqual is not set, an exception will be raised.

See also

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