Sign in Join
FPDoc Onlineexperiment

TFPSMap.Create constructor

Member of TFPSMappublicIn unit fgl

Create a new map with given key and data size.

Declaration

pascal
constructor Create(AKeySize: Integer=sizeof(Pointer); 
 ADataSize: Integer=sizeof(Pointer))

Arguments

AKeySize

Size for map keys.

ADataSize

Size for map data.

Description

Create instantiates a new TFPSMap instance and initializes KeySize and DataSize with AKeySize and ADataSize, respectively. It also initializes the OnDataPtrCompare and OnKeyPtrCompare properties to functions that compare memory blocks.

Errors

None.

See also

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