readFully

common
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.

abstract fun readFully(sink: ByteArray)
abstract fun readFully(sink: Buffer, byteCount: Long)
common
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.