Kroppeb

    Kroppeb

    2 years ago
    I am making a new
    Encoder
    /
    Decoder
    and I'm confused why there is a
    Encoder
    and a
    CompisiteEncoder
    . Why does there need to be a destiction?
    Ah I think I see why. Incase you want to encode a class as a primitive.
    russhwolf

    russhwolf

    2 years ago
    That's a corner of the serialization API that's a bit lacking in documentation. The suggested way of doing stuff is to extend AbstractEncoder/Decoder which implements both interfaces, but since most of the official encoders use the TaggedEncoder/Decoder family instead, there's not a lot of examples of how to do it right.