HexToBuffer
function HexToBuffer (const Hex : string; var Buf; BufSize : Cardinal) : Boolean;

TurboPack OnGuard FMX

HexToBuffer

function HexToBuffer (const Hex : string; var Buf; BufSize : Cardinal) : Boolean;

Navigation:  »No topics above this level«

HexToBuffer

function HexToBuffer (const Hex : string; var Buf; BufSize : Cardinal) : Boolean;

Return to chapter overview

_bm1 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.