Yao-Wen Mei

    Yao-Wen Mei

    4 months ago
    👋 Hello, team! I am wandering where can we find more reference for how a
    format de/encoder
    [Link] works with a
    serializer
    [Link]. I am following the Kotlin Serialization Guide, and I can see this
    encodeSerializableValue()
    method is how de/encoder interact with serializer, but wandering if I can find more detail instructions or example guide. Thank you.
    encoder.encodeSerializableValue(serializer, value)
    e

    ephemient

    4 months ago
    in Encoder/Decoder, you should generally not reference KSerializer. control flows the other way around: the serializer uses passes its SerialDescriptor to various functions on the Encoder/Decoder to perform serialization/deserialization as appropriate