require

common
abstract fun require(byteCount: Long)

Returns when the buffer contains at least byteCount bytes. Throws an java.io.EOFException if the source is exhausted before the required bytes can be read.

abstract fun require(byteCount: Long)