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

TDynHashArray.Create

Constructor for the class instance.

Declaration

Source position: dynhasharray.pp line 99

public constructor TDynHashArray.Create;

constructor TDynHashArray.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.


Version 4.0 Generated 2025-05-03 Home