@BPEEK |
@BPEEK[handle,offset,size] : Read a value from a binary buffer.
handle - a binary handle from @BALLOC
offset - the byte offset in the buffer (decimal or hex)
size - the size of the value to read (in bytes):
1 - character
2 - short
4 - int
8 - int64
Example:
set handle=%@balloc[128]
set value=%@bpeek[%handle,0,4]