BufferToHex
function BufferToHex (const Buf; BufSize : Cardinal) : string;
BufferToHex converts one or more bytes to hex.
Buf contains one or more bytes and BufSize if the number of bytes in Buf. The hexadecimal version of Buf is returned as the function result.
This routine is defined in the OgUtil unit.