fun String.toUtf8OrThrow(): ByteArrayDeprecated: Use encodeToByteArray instead
fun String.toUtf8OrThrow( start: Int = 0, size: Int = this.length ): ByteArrayDeprecated: Use encodeToByteArray instead
Converts a String into an UTF-8 array.
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/to-utf8-or-throw.html