Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
manual:chapter6:libdata:cmd_binputb [2019/10/29 16:24] jojo1973 created |
manual:chapter6:libdata:cmd_binputb [2019/11/06 15:43] jojo1973 |
||
---|---|---|---|
Line 9: | Line 9: | ||
---- | ---- | ||
^ __Input Stack__ | ^ __Input Stack__ | ||
- | | **D< | + | | **D< |
- | | **D< | + | | **D< |
- | | **D< | + | | **D< |
| //Level 4// | //Level 3// | //Level 2// | //Level 1// | // | | //Level 4// | //Level 3// | //Level 2// | //Level 1// | // | ||
Line 23: | Line 23: | ||
<callout color=" | <callout color=" | ||
---- | ---- | ||
- | The '' | + | The '' |
The source of data can be: | The source of data can be: | ||
- | * a **scalar**: the number is converted to a positive | + | * a **scalar**: the number is converted to an unsigned binary |
- | * a **string**: the string is converted to a stream of UTF8 codepoints whose lower 8 bits are written | + | * a **string**: the string is converted to a stream of UTF8 codepoints whose lower 8 bits are stored |
- | * a **list of scalars**: each number is converted to a positive | + | * a **list of scalars**: each number is converted to an unsigned binary |
- | If the size of the source data is less than the specified number of bytes the writing operation terminates silently without error. | + | If the size of the source data is less than the specified number of bytes remaining bytes will be set to ''# |
</ | </ | ||
Line 42: | Line 42: | ||
---- | ---- | ||
< | < | ||
- | 4: BINDATA | + | 4: BINDATA |
3: 0 | 3: 0 | ||
- | 2: 0 | + | 2: # |
- | 1: 4 | + | 1: 8 |
…………………………………………………………………………………… | …………………………………………………………………………………… | ||
BINPUTB | BINPUTB | ||
</ | </ | ||
- | where level 4 stores a binary data container of size 4, will result in | + | will result in |
< | < | ||
- | 1: BINDATA | + | 1: BINDATA |
…………………………………………………………………………………… | …………………………………………………………………………………… | ||
</ | </ | ||
- | a data container | + | a data container |
+ | ---- | ||
+ | < | ||
+ | 4: BINDATA 2 AAAAAAAAAAAA | ||
+ | 3: 0 | ||
+ | 2: " | ||
+ | 1: 2 | ||
+ | …………………………………………………………………………………… | ||
+ | BINPUTB | ||
+ | </ | ||
+ | (where character on level 2 is $\overline{\infty}$, | ||
+ | < | ||
+ | 1: BINDATA 2 AAAFHiAAAAAA | ||
+ | …………………………………………………………………………………… | ||
+ | |||
+ | </ | ||
+ | a data container storing bytes '' | ||
+ | ---- | ||
+ | < | ||
+ | 4: BINDATA 2 AAAAAAAAAAAA | ||
+ | 3: 0 | ||
+ | 2: { # | ||
+ | 1: 2 | ||
+ | …………………………………………………………………………………… | ||
+ | BINPUTB | ||
+ | </ | ||
+ | will result in | ||
+ | < | ||
+ | 1: BINDATA 2 AAARVZAAAAAA | ||
+ | …………………………………………………………………………………… | ||
+ | |||
+ | </ | ||
+ | a data container storing bytes '' | ||
</ | </ | ||