Extract an exact sequence of bytes by offset and length.
Offset is zero-based. Offset 1 and Length 2 select BC from ABCD. Both ends of the range must fit inside the file.
Inputs
| Connector | Type | Usage |
|---|---|---|
file | text | Connect a live file from this workflow. Required. |
offset | number | Required. ≥ 0 |
length | number | Required. ≥ 0 |
name | text | Filename for the new live file. Default range.bin. |
Outputs
file (Text · file ID). Fire signals successful completion.
Connect File to the next file block. Use Copy File to save a persistent copy in a folder.
This block handles up to 32 MiB of file data.
What happens when it runs
If the block reports invalid input, check the file format and setting named in its message. Reconnect the matching output if the item came from an earlier run.
Exact settings reference
These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
offset | Offset | number | Not set | — |
length | Length | number | Not set | — |
name | Output filename | text | range.bin | — |
Connector data types
The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | file — File | text | yes |
| Input | offset — Offset | number | yes |
| Input | length — Length | number | yes |
| Input | name — Output filename | text | no |
| Output | file — File | text | on success |
| Input | fire — Fire | fire | no |
| Output | fire — Fire | fire | on success |
