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

Method appendOne

src/ArduinoJson/Collection/CollectionImpl.hpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33inline void CollectionData::appendOne(Slot<VariantData> slot,
34 const ResourceManager* resources) {
35 if (tail_ != NULL_SLOT) {
36 auto tail = resources->getVariant(tail_);
37 tail->setNext(slot.id());
38 tail_ = slot.id();
39 } else {
40 head_ = slot.id();
41 tail_ = slot.id();
42 }
43}
44
45inline void CollectionData::appendPair(Slot<VariantData> key,
46 Slot<VariantData> value,

Callers

nothing calls this directly

Calls 3

setNextMethod · 0.80
idMethod · 0.80
getVariantMethod · 0.45

Tested by

no test coverage detected