encodeShortElement

override fun encodeShortElement(descriptor: SerialDescriptor, index: Int, value: Short)(source)

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