Sign in Join
FPDoc Onlineexperiment

TLazFifoQueue.Grow procedure

Member of TLazFifoQueuepublicIn unit LazCollections

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

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.