Serialization
Types
-
Describes one serializable type.
Alias types
-
using serialize_func_t = R
(typeinfo_t type, const void* inst) The serialization function for one instance.
-
using deserialize_func_t = RV(typeinfo_t type, void* inst, const Variant& data)
The deserialization function for one instance.
Functions
-
bool is_type_serializable(typeinfo_t type)
Checks whether one type is serializable.
-
void set_serializable(typeinfo_t type, SerializableTypeDesc *desc=nullptr)
Sets one type to be serializable.
-
void set_serializable(SerializableTypeDesc *desc=nullptr)
Sets one type
_Ty
to be serializable. -
R< Variant > serialize(typeinfo_t type, const void *inst)
Serializes one instance.
-
R< Variant > serialize(const _Ty &inst)
Serializes one instance of type
_Ty
. -
RV deserialize(typeinfo_t type, void *inst, const Variant &data)
Deserializes one value.
-
RV deserialize(_Ty &inst, const Variant &data)
Deserializes one value of type
_Ty
.