Skip to content

okio / okio / Source / read

read

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

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.