BinaryPeekHex

Extracts data from a binary buffer as a hex string.

Syntax:

BinaryPeekHex( handle, offset, count )

Parameters:

(i) handle: handle of buffer.

(i) offset: zero-based offset in the buffer to obtain byte from.

(i) count: specifies the number of bytes to read from the buffer.

Returns:

(s) hex string: a hex string, containing 2 hex characters for each byte read from the buffer..

 

Example:


binbuf=BinaryAlloc(1)
BinaryPokeStr( binbuf, 0, "A" ) ;Pokes a new value into the buffer.
ret=BinaryPeekHex( binbuf, 0, 1) ;Finds the hex value of the letter A.
Message("Hmmm", "Hex value of A is %ret%" )
Exit
See Also:

Binary Operations, BinaryPokeHex, BinaryCopy, BinaryIncr, BinaryPeekStr, BinaryPoke, BinaryPokeStr