Sign in Join
FPDoc Onlineexperiment

TDynHashArray.Create constructor

Member of TDynHashArraypublicIn unit DynHashArray

Constructor for the class instance.

Declaration

pascal
constructor Create
constructor Create(InitialMinCapacity: Integer)

Arguments

InitialMinCapacity

Initial value used as the minimum capacity for the class instance.

Description

Create is the overloaded constructor for the class instance. Overloaded variants are provided which set the initial value in MinCapacity to either a default or a user-specified value. The parameter-less version sets the initial value in MinCapacity to 10, but it is automagically increased to 137.

MaxCapacity is set to an arbitrarily large prime number defined in the implementation for class.

Create allocates memory needed to store the number of TDynHashArrayItem entries specified in its Capacity property. The allocated memory is zero-filled prior to use.

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