You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same principle goes also with [CompositeDecoder]: it has [decodeInlineElement][CompositeDecoder.decodeInlineElement] function that returns [Decoder].
124
124
125
125
If your class should be represented as a primitive (as shown in [Primitive serializer](serializers.md#primitive-serializer) section),
126
-
and you cannot use [beginStructure][Encoder.beginStructure] function, there is a complementary function in [Encoder] called [encodeInline][Encoder.encodeInline].
126
+
and you cannot use [encodeStructure][Encoder.encodeStructure] function, there is a complementary function in [Encoder] called [encodeInline][Encoder.encodeInline].
127
127
We will use it to show an example how one can represent a class as an unsigned integer.
128
128
129
129
Let's start with a UID class:
@@ -187,7 +187,7 @@ override fun deserialize(decoder: Decoder): UID {
0 commit comments