Find data pointer in the list.
Source position: cachecls.pp line 89
public function TCache.FindSlot( |
AData: Pointer |
):PCacheSlot; |
AData |
|
Data pointer to look for. |
Slot which contains AData.
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.
If OnIsDataEqual is not set, an exception will be raised.
|
Return index of a data pointer in the list. |
|
|
Add a data element to the list. |
|
|
Event to compare 2 items. |