read

expect abstract 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

actual abstract fun read(sink: ByteArray, offset: Int, limit: Int): Int

Read up to limit bytes and write them to sink starting at offset