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

Method setString

src/ArduinoJson/Variant/VariantData.hpp:514–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512
513 template <typename TAdaptedString>
514 static void setString(VariantData* var, TAdaptedString value,
515 ResourceManager* resources) {
516 if (!var)
517 return;
518 var->clear(resources);
519 var->setString(value, resources);
520 }
521
522 void setLinkedString(const char* s) {
523 ARDUINOJSON_ASSERT(type_ == VariantType::Null); // must call clear() first

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected