encodeUtf8CodePoint

fun encodeUtf8CodePoint(input: CharSequence, start: Int, out: ByteArray): Int

Encode a CharSequence UTF8 codepoint into a byte array.

Return

return the amount of bytes occupied by the codepoint

Parameters

in CharSequence to be encoded

start

start position of the first char in the codepoint

out

byte array of 4 bytes to be filled