I have a procedure that converts byte by byte binary array to hex string. For example:
const
Arr: array [0..3] of Byte = (0, 1, 14, 15);
var
S: String;
begin
SetLength(S, SizeOf(Arr) * 2);
BinToHex(Arr[0], 4, PAnsiChar(@S[1])^);
{S now contain 00010E0F}
end;
Header of my procedure look like this:
procedure BinToHex(constref Binary: Byte; Count: SizeUInt; var Hex: AnsiChar);
The question is: What name fit the best to this procedure?
Two variants are:
1. BinToHex;
2. HexStr; (dublicate the name of already existed in System functions)
Maybe you have you own variant of the name.