MCPcopy Create free account
hub / github.com/Icinga/icinga2 / DeserializeDictionary

Function DeserializeDictionary

lib/base/serializer.cpp:208–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208static 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
223static Object::Ptr DeserializeObject(const Object::Ptr& object, const Dictionary::Ptr& input, bool safe_mode, int attributeTypes)
224{

Callers 1

DeserializeMethod · 0.85

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected