Buffer Slice#
It is similar to the ArraySlice in which a start position input and a count is received and it returns a Buffer that contains the original object from the start position, until the start position plus the count input.
Settings#
| Name | Data Type | Description |
|---|---|---|
| start | Integer | First position to include (0 means the first element of the array) |
| count | Integer | Number of positions to slice |
Table 1: Settings
Examples#
Using an 8-byte buffer with bytes 00 00 00 02 00 00 00 01:
start | count | Output bytes | Notes |
|---|---|---|---|
4 | (not set) | 00 00 00 01 | Read as a 32-bit big-endian integer, this is 1. |
Table 2: Examples
Invalid Input#
This converter fails in any of the cases below. For what happens to the rest of the chain when a converter fails (the error is logged, reported for monitoring, and the next task does not run), see Converters.
start | count | Result |
|---|---|---|
10 | N/A | Fails with Invalid start position '10'. Original value length is '8'. |
4 | 5 | Fails with Start position + count (4 + 5) exceeds value length. |
Table 3: Invalid Input
