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

Function set

src/ArduinoJson/Array/JsonArray.hpp:93–104  ·  view source on GitHub ↗

Copies an array. https://arduinojson.org/v7/api/jsonarray/set/

Source from the content-addressed store, hash-verified

91 // Copies an array.
92 // https://arduinojson.org/v7/api/jsonarray/set/
93 bool set(JsonArrayConst src) const {
94 if (!data_)
95 return false;
96
97 clear();
98 for (auto element : src) {
99 if (!add(element))
100 return false;
101 }
102
103 return true;
104 }
105
106 // Removes the element at the specified iterator.
107 // https://arduinojson.org/v7/api/jsonarray/remove/

Callers

nothing calls this directly

Calls 2

clearFunction · 0.70
addFunction · 0.70

Tested by

no test coverage detected