calcUTF16toUTF8Length

fun calcUTF16toUTF8Length(s: CharSequence, offset: Int, len: Int): Int

Calculates the number of UTF8 bytes necessary to write a UTF16 string.

Return

the number of bytes written