@bytes.at
Access a single byte by index in a bytes value.
Returns: bytes
Syntax
Section titled “Syntax”@bytes.at(value index)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
value |
bytes |
Input value |
index |
number |
Zero-based byte index |
Examples
Section titled “Examples”# Get byte at indexset $first @bytes.at(0xaabbcc 0)See Also
Section titled “See Also”- @bytes.slice — extract a byte range
- @at — array element access