MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / getOrAddElement

Method getOrAddElement

src/ArduinoJson/Variant/VariantData.hpp:343–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341 }
342
343 VariantData* getOrAddElement(size_t index, ResourceManager* resources) {
344 auto array = isNull() ? &toArray() : asArray();
345 if (!array)
346 return nullptr;
347 return array->getOrAddElement(index, resources);
348 }
349
350 template <typename TAdaptedString>
351 VariantData* getOrAddMember(TAdaptedString key, ResourceManager* resources) {

Callers

nothing calls this directly

Calls 1

isNullFunction · 0.70

Tested by

no test coverage detected