MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Serialize

Method Serialize

Source/Engine/Serialization/Serialization.cpp:57–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void Serialization::Serialize(ISerializable::SerializeStream& stream, const VariantType& v, const void* otherObj)
58{
59 if (v.TypeName == nullptr)
60 {
61 stream.Int(static_cast<int32>(v.Type));
62 }
63 else
64 {
65 stream.StartObject();
66
67 stream.JKEY("Type");
68 stream.Int(static_cast<int32>(v.Type));
69
70 stream.JKEY("TypeName");
71 stream.String(v.TypeName);
72
73 stream.EndObject();
74 }
75}
76
77void Serialization::Deserialize(ISerializable::DeserializeStream& stream, VariantType& v, ISerializeModifier* modifier)
78{

Callers 5

SerializeFunction · 0.45
ObjectMethod · 0.45
SceneObjectMethod · 0.45
WriteJsonMethod · 0.45
SaveToBytesMethod · 0.45

Calls 15

GuidMethod · 0.80
GetIDMethod · 0.80
SerializeFunction · 0.70
IntMethod · 0.45
StartObjectMethod · 0.45
StringMethod · 0.45
EndObjectMethod · 0.45
BoolMethod · 0.45
UintMethod · 0.45
Int64Method · 0.45
Uint64Method · 0.45
FloatMethod · 0.45

Tested by

no test coverage detected