descriptor

Describes the structure of the serializable representation of Zero, produced by this serializer.

See the KSerializer.descriptor property for more details.


Calling from Kotlin

Here's an example of calling this property from Kotlin code:

val serializer = ZeroAsByteSerializer()
val descriptor: SerialDescriptor = serializer.descriptor
val expected: SerialDescriptor = PrimitiveSerialDescriptor(
serialName = "$serializer",
PrimitiveKind.BYTE
)
assertEquals(expected, descriptor)