TdxFastList.Pack(Pointer) Method
Removes redundant pointers from the list.
Declaration
procedure Pack(APattern: Pointer = nil);
Parameters
Name | Type |
---|---|
APattern | Pointer |
Remarks
Call this procedure to delete all nil (in Delphi) or NULL/nullptr (in C++Builder) pointers from the list. You can use the APattern optional parameter to delete all stored pointers that match it instead of nil or NULL/nullptr pointers. The Pack procedure:
Decrements the Count property value by the number of deleted redundant pointers.
Shifts each block of remaining pointers that follow each deleted pointer left by one position towards the list’s beginning to form a single contiguous occupied memory block.
Note
A Pack procedure call has no effect if the ordered pointer list is empty or stores no pointers that match the specified pattern.
See Also