Show/Hide Toolbars

Take Command / TCC Help v. 21

@BPEEKSTR[handle,offset,type,length] : Read a string from a binary buffer.

 

handle - a binary handle from @BALLOC

 

offset - the byte offset in the buffer (decimal or hex)

 

type - the string type:

 

a - ASCII

u - Unicode

 

length - the maximum number of characters to read (decimal or hex)

 

Example:

 

set handle=%@balloc[128]

set value=%@bpeekstr[%handle,0,a]