FUNCTION
byte_array.sub
function sub(start: integer): byte_arrayReturns a sub-array of this byte array starting from the specified index (inclusive).
Parameters
- start — the start index of the sub-array
Throws
exception— if thestartindex is out of range
Since
0.6.0
function sub(start: integer, end: integer): byte_arrayReturns a sub-array of this byte array from the specified start index (inclusive) to the specified end index (exclusive).
Parameters
- start — the start index of the sub-array
- end — the end index of the sub-array
Throws
exception— when: - thestartorendindexes are out of range - thestartindex is greater than theendindex
Since
0.6.0
© 2026 Chromia