Skip to content

@bytes.slice

Extract a byte range from a bytes value.

Returns: bytes

@bytes.slice(value start end?)
Name Type Description
value bytes Input value
start number Start index (inclusive)
[end] number End index (exclusive)
# Slice bytes
set $mid @bytes.slice(0xaabbccdd 1 3)