Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxFastList.Pack(Pointer) Method

Removes redundant pointers from the list.

#Declaration

Delphi
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