System.SysUtils.TNativeIntHelper.ToHexString
Delphi
function ToHexString: string; overload; inline;
function ToHexString(const MinDigits: Integer): string; overload;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TNativeIntHelper |
Description
Converts NativeInt to a hexadecimal string.
This method is overloaded:
- The first overloaded method ToHexString converts this NativeInt number to a hexadecimal string representation with 8 hexadecimal digits on 32-bit platforms and 16 hexadecimal digits on 64-bit platforms.
- The second overloaded method ToHexString converts this NativeInt number to a hexadecimal string with a minimum number of hexadecimal digits represented by the
MinDigits
parameter. If the value has fewer digits thanMinDigits
parameter, the resulting string is left-padded with zeros if the value is positive or zero, or with character 'F' if the value is negative.
Note: For details on how the conversion is processed, see the description of IntToHex.