FlashStringReader.hpp
Go to the documentation of this file.
1 // ArduinoJson - arduinojson.org
2 // Copyright Benoit Blanchon 2014-2019
3 // MIT License
4 //
5 // Sming FlashString reader mikee47 Nov 2019 <mike@sillyhouse.net>
6 
7 #pragma once
8 
9 #include <FlashString/String.hpp>
10 #include <ArduinoJson/Deserialization/Readers/FlashReader.hpp>
11 
12 ARDUINOJSON_BEGIN_PRIVATE_NAMESPACE
13 
14 template <> struct Reader<const FSTR::String, void> : public BoundedReader<const __FlashStringHelper*, void> {
15  explicit Reader(const FSTR::String& str) : BoundedReader(str.data(), str.length())
16  {
17  }
18 };
19 
20 ARDUINOJSON_END_PRIVATE_NAMESPACE
describes a counted string stored in flash memory
Definition: String.hpp:174
The String class.
Definition: WString.h:133
Definition: Array.hpp:118
Reader(const FSTR::String &str)
Definition: FlashStringReader.hpp:15
#define str(s)
Definition: testrunner.h:124