[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Maps' (#lazutils)

TBaseMap.InternalGetData

Gets the data stored in the specified map item.

Declaration

Source position: maps.pp line 114

protected function TBaseMap.InternalGetData(

  AItem: PMapItem;

  out AData

):Boolean;

Arguments

AItem

  

Map item to examine n the method.

AData

  

Data stored in the specified map item.

Function result

True when the specified map item is a valid pointer.

Description

InternalGetData is a Boolean function used to get the data stored in the specified map item. AItem is the map item examined in the method, and must contain a valid pointer. The return value is set to False, and no actions are performed in the method, when AItem contains Nil. The return value is True when a pointer has been assigned to AItem.

InternalGetData skips the ID value in AItem, and stores the Data for the map item in AData. The size arguments passed in the constructor are used when reading the ID and Data values. Please note that no validation is performed for the arbitrary byte values read into AData.

Do not call InternalGetData directly. Use the public methods in the class, or a descendant class like TMap which implements the GetData method.

See also

TMap.GetData

  

Gets the Data for the map item with the specified ID.


Version 3.2 Generated 2024-02-25 Home