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

Function DeserializeInt

Source/Engine/Serialization/Serialization.h:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace Serialization
35{
36 inline int32 DeserializeInt(ISerializable::DeserializeStream& stream)
37 {
38 int32 result = 0;
39 if (stream.IsInt())
40 result = stream.GetInt();
41 else if (stream.IsFloat())
42 result = (int32)stream.GetFloat();
43 else if (stream.IsString())
44 StringUtils::Parse(stream.GetString(), &result);
45 return result;
46 }
47
48 // In-build types
49

Callers 1

DeserializeFunction · 0.85

Calls 4

GetIntMethod · 0.80
GetFloatMethod · 0.80
ParseFunction · 0.50
GetStringMethod · 0.45

Tested by

no test coverage detected