fun ByteArray.range(index: Int, count: Int): ByteArray
Extracts a range of bytes from a ByteArray.
index - the index to start at
index
count - the number of bytes to extract, starting at index
count
Return the extracted bytes