// ArduinoJson - https://arduinojson.org // Copyright Benoit Blanchon 2014-2021 // MIT License #pragma once #include #include #include namespace ARDUINOJSON_NAMESPACE { template struct is_std_string : false_type {}; template struct is_std_string > : true_type {}; template class Writer::value>::type> { public: Writer(TDestination &str) : _str(&str) {} size_t write(uint8_t c) { _str->operator+=(static_cast(c)); return 1; } size_t write(const uint8_t *s, size_t n) { _str->append(reinterpret_cast(s), n); return n; } private: TDestination *_str; }; } // namespace ARDUINOJSON_NAMESPACE