| 34 | namespace 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 |
no test coverage detected