Project

General

Profile

$bvar » History » Revision 3

Revision 2 (Per Amundsen, 08/09/2015 05:43 AM) → Revision 3/13 (Per Amundsen, 08/09/2015 06:07 AM)

_Added in 1.9.0_ 

 *$bvar(&binvar,N,M)* 

 Returns M "ASCII":http://www.asciitable.com/ values from a &binvar starting from the Nth byte. 

 *Parameters* 

 &binvar - The &binvar to use. 
 N - Position to start retrieving bytes. 
 M - Numbers of bytes to get. 

 *Properties* 

 .text - Returns plain text instead of "ASCII":http://www.asciitable.com/ values. 
 .word - TODO 
 .nword - TODO 
 .long - TODO 
 .nlong - TODO 

 *Example* 

 <pre> 
 ; Returns ;Returns the length of the binary variable. 
 //echo -ag $bvar(&binvar,0)         

 ; Returns ;Returns ascii value at position N. 
 //echo -ag $bvar(&binvar,1) 

 ; Returns ;Returns ascii values from 5 to 8. 
 //echo -ag $bvar(&binvar,5,3)    

 ; Returns ;Returns plain text from 5 to 8 up to the first zero character. 
 //echo -ag $bvar(&binvar,5,3).text 
 </pre>