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

Function copyArray

src/ArduinoJson/Array/Utilities.hpp:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <ArduinoJson/Document/JsonDocument.hpp>
9
10ARDUINOJSON_BEGIN_PUBLIC_NAMESPACE
11
12// Copies a value to a JsonVariant.
13// This is a degenerated form of copyArray() to stop the recursion.
14template <typename T, detail::enable_if_t<!detail::is_array<T>::value, int> = 0>
15inline bool copyArray(const T& src, JsonVariant dst) {
16 return dst.set(src);
17}
18
19// Copies values from an array to a JsonArray or a JsonVariant.
20// https://arduinojson.org/v7/api/misc/copyarray/

Callers 1

copyArray.cppFile · 0.85

Calls 5

setMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected