Sign in Join
FPDoc Onlineexperiment

TObjectArray.Shrink procedure

Member of TObjectArrayprotectedIn unit ObjectLists

Decreases the Capacity and allocated storage for the class instance.

Declaration

pascal
procedure Shrink

Description

Shrink is a procedure used to decrease the Capacity (and subsequently) the allocated storage for the class instance. Shrink always halves the value in the Capacity property. It is called from the Delete method when Capacity has at least four (4) times the number of associations in the Count property.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.