copyTo

expect fun copyTo(out: Buffer, offset: Long = 0, byteCount: Long): Buffer

Copy byteCount bytes from this, starting at offset, to out.


expect fun copyTo(out: Buffer, offset: Long = 0): Buffer

Overload of copyTo with byteCount = size - offset, work around for https://youtrack.jetbrains.com/issue/KT-30847

fun copyTo(out: OutputStream, offset: Long = 0, byteCount: Long = size - offset): Buffer

Copy byteCount bytes from this, starting at offset, to out.


actual fun copyTo(out: Buffer, offset: Long, byteCount: Long): Buffer
actual fun copyTo(out: Buffer, offset: Long): Buffer
actual fun copyTo(out: Buffer, offset: Long, byteCount: Long): Buffer
actual fun copyTo(out: Buffer, offset: Long): Buffer