stringFromUtf8OrThrow

Native
1.3
fun ByteArray.stringFromUtf8OrThrow(): String
Deprecated: Use toKString or decodeToString instead
fun ByteArray.stringFromUtf8OrThrow(
    start: Int = 0,
    size: Int = this.size
): String
Deprecated: Use toKString or decodeToString instead

Converts an UTF-8 array into a String.

Exceptions

IllegalCharacterConversionException - if the input is invalid.