readAll

common
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.

abstract fun readAll(sink: Sink): Long