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

TLazFifoQueue.Grow

Resizes the internal storage for the queue by the specified Delta value.

Declaration

Source position: lazcollections.pas line 70

public procedure TLazFifoQueue.Grow(

  ADelta: Integer

);

Arguments

ADelta

  

Number of entries to add to (or remove from) the queue size.

Description

Grow is a method used to resize the internal storage for the queue by the specified Delta value.

When ADelta is a position Integer value, the size for the internal array is enlarged by the value specified number of entries. When ADelta is a negative Integer value, the internal storage is shrunk by the specified number of entries.

Grow reallocates the internal array used to store the item types for the specialization. Existing items in the queue are moved to the new array, and the internal storage is updated.

The value in the QueueSize property is set to the new length for the internal array.

See also

TLazFifoQueue.QueueSize

  

Size (or depth) for the queue.


Version 4.0 Generated 2025-05-03 Home