encodeCharElement

abstract fun encodeCharElement(    descriptor: SerialDescriptor,     index: Int,     value: Char)

Encodes a 16-bit unicode character value associated with an element at the given index in serial descriptor. The element at the given index should have PrimitiveKind.CHAR kind.