Converts a binary value into its hexadecimal representation.
procedure BinToHex(Buffer: PChar; Text: PChar; BufSize: Integer);
BinToHex(const char * Buffer, const char * Text, int BufSize);
Classes
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.
IntToHex
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|