BinaryPokeHex

Writes data in a hex string form into a binary buffer.

Syntax:

BinaryPokeHex( handle, offset, hex-string )

Parameters:

(i) handle: handle of buffer.

(i) offset: zero-based offset in the buffer to store string.

(s) hex-string: is a hex string, containing 2 hex characters for each byte that will be written to the buffer.

Returns:

(i)  number of bytes stored.

 
Example:


binbuf=BinaryAlloc(1)
BinaryPokeHex( binbuf, 0, "41" )
ret=BinaryPeekStr( binbuf, 0, 1)
Message("Hmmm", "String value of hex 41 is %ret%" )
Exit
See Also:

Binary Operations, BinaryPeekHex, BinaryCopy, BinaryPeek, BinaryPeekStr, BinaryPoke