read
Remove at least 1 byte, and up-to limit bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.
expect open override fun read(sink: ByteArray, offset: Int = 0, limit: Int = sink.size - offset): Int
Read up to limit bytes and write them to sink starting at offset
Remove at least 1 byte, and up-to limit bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.
Read up to limit bytes and write them to sink starting at offset