okio / okio / BufferedSource / readAll

readAll

(js, jvm, native) abstract fun readAll(sink:Sink):Long

Removes all bytes from this and appends them to sink. Returns the total number of bytes written to sink which will be 0 if this is exhausted.