toUtf8OrThrow
fun String.toUtf8OrThrow(): ByteArray
fun String.toUtf8OrThrow(
start: Int = 0,
size: Int = this.length
): ByteArray
Converts a String into an UTF-8 array.
Exceptions
IllegalCharacterConversionException
- if the input is invalid.