utf8Size

@JvmName(name = "size")
fun String.utf8Size(beginIndex: Int = 0, endIndex: Int = length): Long

Returns the number of bytes used to encode the slice of string as UTF-8 when using BufferedSink.writeUtf8.