HexToBin

Convert hex string to binary memory.

OutputVar := HexToBin(Bin, Hex)
Function Example: address := HexToBin(bin,"101010")

Parameters

OutputVar

The name of the variable in which to store address of bin variable.

Bin

Name of variable in which to store binary data.

Hex

Hex string to convert.

Related

#DllImport, DynaCall, WinApi

Examples

v:=BufferAlloc(8,0)
NumPut("INT64", 0x10101010, v)
hex:=BinToHex(v, 8)
MsgBox hex
bin:=HexToBin( hex)
MsgBox format("0x{1:X}",NumGet(bin,"INT64"))