readFully

expect abstract fun readFully(sink: ByteArray)

Removes exactly sink.length bytes from this and copies them into sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.


expect abstract fun readFully(sink: Buffer, byteCount: Long)

Removes exactly byteCount bytes from this and appends them to sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.

actual abstract fun readFully(sink: ByteArray)
actual abstract fun readFully(sink: Buffer, byteCount: Long)
actual abstract fun readFully(sink: ByteArray)
actual abstract fun readFully(sink: Buffer, byteCount: Long)