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

Method at

src/ArduinoJson/Array/ArrayImpl.hpp:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <ArduinoJson/Variant/VariantData.hpp>
10
11ARDUINOJSON_BEGIN_PRIVATE_NAMESPACE
12
13inline ArrayData::iterator ArrayData::at(
14 size_t index, const ResourceManager* resources) const {
15 auto it = createIterator(resources);
16 while (!it.done() && index) {
17 it.next(resources);
18 --index;
19 }
20 return it;
21}
22
23inline VariantData* ArrayData::addElement(ResourceManager* resources) {
24 auto slot = resources->allocVariant();

Callers

nothing calls this directly

Calls 2

doneMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected