fun ByteArray.copyTo(length: Int, dest: ByteArray, offset: Int = 0, destOffset: Int = 0): ByteArray
Copies length bytes from this starting from offset into dest byte array starting from destOffset.