readUtf8

expect open override fun readUtf8(): String

Reads all bytes from this source, decodes them as UTF-8, and returns the string.


expect open override fun readUtf8(byteCount: Long): String

Reads byteCount bytes from this source, decodes them as UTF-8, and returns the string.

Caution This may pull a large amount of data into memory, only do this if you are sure the contents fit into memory. Throws IllegalArgumentException if the buffer size exceeds Int.MAX_VALUE.

actual open override fun readUtf8(): String

Reads all bytes from this source, decodes them as UTF-8, and returns the string.

Caution This may pull a large amount of data into memory, only do this if you are sure the contents fit into memory. Throws IllegalArgumentException if the buffer size exceeds Int.MAX_VALUE.


actual open override fun readUtf8(byteCount: Long): String

Reads byteCount bytes from this source, decodes them as UTF-8, and returns the string.