okio / okio / BufferedSource / require

require

(js, jvm, native) abstract fun require(byteCount:Long):Unit(js)

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.

(jvm)

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.