the instance which base class(es) should be serialized, usually
this
SerializationException if an error occurs
class Base {} class Sub : Base { void toData (Serializer serializer, Serializer.Data key) { // perform serialization serializer.serializeBase(this); } }
Serializes the base class(es) of an instance.
This method is used when performing custom serialization of a given type. If this method is not called when performing custom serialization none of the instance's base classes will be serialized.