System.Ptr
Delphi
function Ptr(Address: Integer): Pointer;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas | System | System |
Description
Converts a specified address to a pointer.
In Delphi code, Ptr converts the given Address to a pointer. A call to this function generates no code, but simply treats the 32-bit value given by Address as a pointer. Like nil, the result of Ptr is assignment-compatible with all pointer types.
See Also