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

Function DeserializeArray

lib/base/serializer.cpp:193–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193static 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
208static Dictionary::Ptr DeserializeDictionary(const Dictionary::Ptr& input, bool safe_mode, int attributeTypes)
209{

Callers 1

DeserializeMethod · 0.85

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected