TFPSMap.Create
Create a new map with given key and data size.
Declaration
Source position: fgl.pp line 273
public
constructor Create(AKeySize: Integer; ADataSize: Integer);
Description
Create instantiates a new TFPSMap instance and initializes TFPSMap.KeySize and TFPSMap.DataSize with AKeySize and ADataSize, respectively. It also initializes the TFPSMap.OnDataPtrCompare and TFPSMap.OnKeyPtrCompare properties to functions that compare memory blocks.
Errors
None.
See also
Name | Description |
---|---|
TFPSMap.DataSize | Size (in bytes) for the data associated with keys |
TFPSMap.Destroy | |
TFPSMap.KeySize | Size (in bytes) for the key |
TFPSMap.OnDataPtrCompare | Callback to compare 2 data items |
TFPSMap.OnKeyPtrCompare | Callback to compare 2 keys |