| 206 | } |
| 207 | |
| 208 | static Dictionary::Ptr DeserializeDictionary(const Dictionary::Ptr& input, bool safe_mode, int attributeTypes) |
| 209 | { |
| 210 | DictionaryData result; |
| 211 | |
| 212 | result.reserve(input->GetLength()); |
| 213 | |
| 214 | ObjectLock olock(input); |
| 215 | |
| 216 | for (const Dictionary::Pair& kv : input) { |
| 217 | result.emplace_back(kv.first, Deserialize(kv.second, safe_mode, attributeTypes)); |
| 218 | } |
| 219 | |
| 220 | return new Dictionary(std::move(result)); |
| 221 | } |
| 222 | |
| 223 | static Object::Ptr DeserializeObject(const Object::Ptr& object, const Dictionary::Ptr& input, bool safe_mode, int attributeTypes) |
| 224 | { |