encodeFloatElement

override fun encodeFloatElement(descriptor: SerialDescriptor, index: Int, value: Float)(source)

Encodes a 32-bit IEEE 754 floating point value associated with an element at the given index in serial descriptor. The element at the given index should have PrimitiveKind.FLOAT kind.