Copy byteCount bytes from this, starting at offset, to out.
byteCount
offset
out
Overload of copyTo with byteCount = size - offset, work around for https://youtrack.jetbrains.com/issue/KT-30847