[Overview][Constants][Types][Procedures and functions] |
Convert a binary buffer to a hexadecimal string
Source position: strutils.pp line 170
procedure BinToHex( |
BinValue: PChar; |
HexValue: PChar; |
BinBufSize: Integer |
); |
BinToHexconverts the byte values in BinValueto a string consisting of 2-charachter hexadecimal strings in HexValue. BufSizespecifies the length of BinValue, which means that HexValuemust have size 2*BufSize.
For example a buffer containing the byte values 255 and 0 will be converted to FF00.
No length checking is done, so if an invalid size is specified, an exception may follow.
|
Convert a hexadecimal string to a binary buffer |