These docs are for v1.3.0. Click to read the latest docs for v1.6.

EOSLIB_SERIALIZE_DERIVED

Defines serialization and deserialization for a class which inherits from other classes that have their serialization and deserialization defined

Parameters

  • TYPE - the class to have its serialization and deserialization defined
  • BASE - a sequence of base class names (basea)(baseb)(basec)
  • MEMBERS - a sequence of member names. (field1)(field2)(field3)

Example

EOSLIB_SERIALIZE_DERIVED( token, (asset), (amount)(symbol)(contract))