okio / okio / BufferedSink / writeAll

writeAll

(js, jvm, native) abstract fun writeAll(source:Source):Long

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