Call BinToHex to convert the binary value in a buffer into a string that is its hexadecimal representation.
Buffer is a buffer of bytes that contains the binary value.
Text returns a null-terminated string that represents the value of Buffer as a hexadecimal number.
BufSize is the size of Buffer. Text needs to point to a sequence of characters that has at least 2*BufSize bytes because each hexadecimal character represents two bytes
再将十六进制转换为10进制
Converts a string that represents an integer (decimal or hex notation) to a number.
Unit
SysUtils
Category
type conversion routines
function StrToInt(const S: string): Integer;
Description
StrToInt converts the string S, which represents an integer-type number in either decimal or hexadecimal notation, into a number. If S does not represent a valid number, StrToInt raises an EConvertError exception.