| 191 | } |
| 192 | |
| 193 | static Array::Ptr DeserializeArray(const Array::Ptr& input, bool safe_mode, int attributeTypes) |
| 194 | { |
| 195 | ArrayData result; |
| 196 | |
| 197 | result.reserve(input->GetLength()); |
| 198 | |
| 199 | ObjectLock olock(input); |
| 200 | |
| 201 | for (const Value& value : input) { |
| 202 | result.emplace_back(Deserialize(value, safe_mode, attributeTypes)); |
| 203 | } |
| 204 | |
| 205 | return new Array(std::move(result)); |
| 206 | } |
| 207 | |
| 208 | static Dictionary::Ptr DeserializeDictionary(const Dictionary::Ptr& input, bool safe_mode, int attributeTypes) |
| 209 | { |