Converts a binary value into its hexadecimal representation.
procedure BinToHex(Buffer: PAnsiChar; Text: PWideChar; BufSize: Integer); overload; procedure BinToHex(Buffer: PAnsiChar; Text: PAnsiChar; BufSize: Integer); overload; procedure BinToHex(var Buffer; Text: PWideChar; BufSize: Integer); overload; procedure BinToHex(var Buffer; Text: PAnsiChar; BufSize: Integer); overload; procedure BinToHex(Buffer: Pointer; Text: PWideChar; BufSize: Integer); overload; procedure BinToHex(Buffer: Pointer; Text: PAnsiChar; BufSize: Integer); overload;
BinToHex(PAnsiChar Buffer, PWideChar Text, int BufSize); BinToHex(PAnsiChar Buffer, PAnsiChar Text, int BufSize); BinToHex( Buffer, PWideChar Text, int BufSize); BinToHex( Buffer, PAnsiChar Text, int BufSize); BinToHex(void * Buffer, PWideChar Text, int BufSize); BinToHex(void * Buffer, PAnsiChar Text, int BufSize);
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|