Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
manual:chapter6:libdata:cmd_binputb [2019/10/29 16:24] jojo1973 created |
manual:chapter6:libdata:cmd_binputb [2021/09/23 00:44] (current) jojo1973 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== BINPUTB ==== | ==== BINPUTB ==== | ||
| - | ---- | ||
| <callout type=" | <callout type=" | ||
| ---- | ---- | ||
| - | Store bytes into binary data object | + | Store bytes into a binary data container |
| </ | </ | ||
| Line 9: | Line 8: | ||
| ---- | ---- | ||
| ^ __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// | // |
| {{page> | {{page> | ||
| - | |**Type**| [[manual: | + | | **Keyword type** | [[manual: |
| - | |**Parallel list processing**| [[manual: | + | | **Parallel list processing |
| - | |**Affected by flags**| None || | + | | **Affected by flags** |
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| </ | </ | ||
| <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 ''# |
| </ | </ | ||
| <callout type=" | <callout type=" | ||
| ---- | ---- | ||
| - | This command | + | '' |
| </ | </ | ||
| <callout type=" | <callout type=" | ||
| ---- | ---- | ||
| + | **__Input__** | ||
| < | < | ||
| - | 4: BINDATA | + | 4: BINDATA |
| - | 3: | + | 3: |
| - | 2: 0 | + | 2: # |
| - | 1: 4 | + | 1: 8 |
| - | …………………………………………………………………………………… | + | ………………………………………………………………………………………………………… |
| - | BINPUTB | + | BINPUTB |
| </ | </ | ||
| - | where level 4 stores a binary data container of size 4, will result in | + | \\ |
| + | **__Output__** | ||
| < | < | ||
| - | 1: BINDATA | + | 4: |
| - | …………………………………………………………………………………… | + | 3: |
| + | 2: | ||
| + | 1: BINDATA | ||
| + | ………………………………………………………………………………………………………… | ||
| + | |||
| </ | </ | ||
| - | a data container totally empty. | ||
| </ | </ | ||
| Line 62: | Line 79: | ||
| {{page> | {{page> | ||
| </ | </ | ||
| + | |||