Pike v8.0 release 1738

Class Serializer.Encodeable

Inheritance graph
Serializer.Serializable Serializer.Encodeable
Description

Simple base for an object that can be serialized by encode_value. Also supports decoding.

Uses Serializable as it's base.

Simply inherit this class in the classes you want to have encoded and decoded.

Note that it's not automatically recursive, objects assigned to variables in this object have to be Encodeable on their own for encode to work.

When decoding only variables that existed at the time the object was encoded are assigned, that is, if the class now has more variables they new variables will be set to 0.


Inherit Serializable

inherit Serializable : Serializable