$bvar » History » Version 1
Per Amundsen, 02/28/2014 12:30 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$bvar(&binvar,N,M)* |
||
4 | |||
5 | Returns M ascii values from a &binvar starting from the Nth byte. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | &binvar - The &binvar to use. |
||
10 | N - Position to start retrieving bytes. |
||
11 | M - Numbers of bytes to get. |
||
12 | |||
13 | *Properties* |
||
14 | |||
15 | .text - Returns plain text instead of ascii values. |
||
16 | .word - TODO |
||
17 | .nword - TODO |
||
18 | .long - TODO |
||
19 | .nlong - TODO |
||
20 | |||
21 | *Example* |
||
22 | |||
23 | <pre> |
||
24 | ;Returns the length of the binary variable. |
||
25 | //echo -ag $bvar(&binvar,0) |
||
26 | |||
27 | ;Returns ascii value at position N. |
||
28 | //echo -ag $bvar(&binvar,1) |
||
29 | |||
30 | ;Returns ascii values from 5 to 8. |
||
31 | //echo -ag $bvar(&binvar,5,3) |
||
32 | |||
33 | ;Returns plain text from 5 to 8 up to the first zero character. |
||
34 | //echo -ag $bvar(&binvar,5,3).text |
||
35 | </pre> |