readAll

expect abstract fun readAll(sink: SdkSink): Long

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

actual abstract fun readAll(sink: <Error class: unknown class>): Long

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