Class ISerializable

Class Documentation

class ISerializable

Interface for any class that declares itself as "serializable" (meaning, it can be read from or written to an object that implements the Serializer interface).

Public Functions

virtual ~ISerializable()
virtual size_t Serialize(Serializer *serializer) const = 0

Write this instance's data to serializer.

Parameters

serializer -- Object that implements the Serializer interface

Returns

Number of bytes written

virtual size_t Deserialize(Serializer *serializer) = 0

Deserialize this instance from serializer.

Parameters

serializer -- Object that implements the Serializer interface

Returns

Number of bytes read