HexToBuffer
function HexToBuffer (const Hex : string; var Buf; BufSize : Cardinal) : Boolean;
HexToBuffer converts the hexadecimal string in Hex to bytes that are stored in Buf.
Punctuation ($, spaces, commas, parentheses, ...) is ignored.
BufSize is the number of bytes to store in Buf and must be the number of hexadecimal bytes in Hex. If an error occurs, false is returned, otherwise true.
This routine is defined in the OgUtil unit.