Skip to content

okio / okio / BufferedSource / readFully

readFully

(js, jvm, native) abstract fun readFully(sink:ByteArray):Unit(js)

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.

(jvm)

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.

(js, jvm, native) abstract fun readFully(sink:Buffer, byteCount:Long):Unit(js)

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.

(jvm)

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.