fun ByteArray.stringFromUtf8OrThrow(): StringDeprecated: Use toKString or decodeToString instead
fun ByteArray.stringFromUtf8OrThrow( start: Int = 0, size: Int = this.size ): StringDeprecated: Use toKString or decodeToString instead
Converts an UTF-8 array into a String.
IllegalCharacterConversionException
- if the input is invalid.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/string-from-utf8-or-throw.html