[Overview][Types][Classes][Index] Reference for unit 'DynQueue' (#lazutils)

TDynamicDataQueue.Clear

Frees data items and storage allocated for the queue.

Declaration

Source position: dynqueue.pas line 62

public procedure TDynamicDataQueue.Clear;

Description

Clear is a procedure used to free all items stored in the queue, and the memory allocated for their storage. Clear iterates over the items in the queue, and calls FreeMem to de-allocate memory reserved to store each item structure and its data. The internal storage for the queue is set to Nil when all items have been de-allocated.

Clear resets the values for internal members used for the queue Size, and those used for item positions in the queue.

See also

TDynamicDataQueue.Size

  

Total memory required for item data stored in the queue.


Version 4.0 Generated 2025-05-03 Home