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

Method addElement

src/ArduinoJson/Array/ArrayImpl.hpp:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23inline VariantData* ArrayData::addElement(ResourceManager* resources) {
24 auto slot = resources->allocVariant();
25 if (!slot)
26 return nullptr;
27 CollectionData::appendOne(slot, resources);
28 return slot.ptr();
29}
30
31inline VariantData* ArrayData::getOrAddElement(size_t index,
32 ResourceManager* resources) {

Callers 4

parseArrayFunction · 0.45
readArrayFunction · 0.45
addFunction · 0.45
addElementFunction · 0.45

Calls 2

allocVariantMethod · 0.80
ptrMethod · 0.80

Tested by

no test coverage detected