@bytes.slice
Extract a byte range from a bytes value.
Returns: bytes
Syntax
Section titled “Syntax”@bytes.slice(value start end?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
value |
bytes |
Input value |
start |
number |
Start index (inclusive) |
[end] |
number |
End index (exclusive) |
Examples
Section titled “Examples”# Slice bytesset $mid @bytes.slice(0xaabbccdd 1 3)