@@ -53,8 +53,8 @@ class VariantData {
5353 template <typename TVisitor>
5454 typename TVisitor::result_type accept (
5555 TVisitor& visit, const ResourceManager* resources) const {
56- #if ARDUINOJSON_USE_EXTENSIONS
57- auto extension = getExtension (resources);
56+ #if ARDUINOJSON_USE_EIGHT_BYTE_VALUES
57+ auto eightByteValue = getEightByte (resources);
5858#else
5959 (void )resources; // silence warning
6060#endif
@@ -64,7 +64,7 @@ class VariantData {
6464
6565#if ARDUINOJSON_USE_DOUBLE
6666 case VariantType::Double:
67- return visit.visit (extension ->asDouble );
67+ return visit.visit (eightByteValue ->asDouble );
6868#endif
6969
7070 case VariantType::Array:
@@ -95,10 +95,10 @@ class VariantData {
9595
9696#if ARDUINOJSON_USE_LONG_LONG
9797 case VariantType::Int64:
98- return visit.visit (extension ->asInt64 );
98+ return visit.visit (eightByteValue ->asInt64 );
9999
100100 case VariantType::Uint64:
101- return visit.visit (extension ->asUint64 );
101+ return visit.visit (eightByteValue ->asUint64 );
102102#endif
103103
104104 case VariantType::Boolean:
@@ -145,8 +145,8 @@ class VariantData {
145145 }
146146
147147 bool asBoolean (const ResourceManager* resources) const {
148- #if ARDUINOJSON_USE_EXTENSIONS
149- auto extension = getExtension (resources);
148+ #if ARDUINOJSON_USE_EIGHT_BYTE_VALUES
149+ auto eightByteValue = getEightByte (resources);
150150#else
151151 (void )resources; // silence warning
152152#endif
@@ -160,14 +160,14 @@ class VariantData {
160160 return content_.asFloat != 0 ;
161161#if ARDUINOJSON_USE_DOUBLE
162162 case VariantType::Double:
163- return extension ->asDouble != 0 ;
163+ return eightByteValue ->asDouble != 0 ;
164164#endif
165165 case VariantType::Null:
166166 return false ;
167167#if ARDUINOJSON_USE_LONG_LONG
168168 case VariantType::Uint64:
169169 case VariantType::Int64:
170- return extension ->asUint64 != 0 ;
170+ return eightByteValue ->asUint64 != 0 ;
171171#endif
172172 default :
173173 return true ;
@@ -193,8 +193,8 @@ class VariantData {
193193 template <typename T>
194194 T asFloat (const ResourceManager* resources) const {
195195 static_assert (is_floating_point<T>::value, " T must be a floating point" );
196- #if ARDUINOJSON_USE_EXTENSIONS
197- auto extension = getExtension (resources);
196+ #if ARDUINOJSON_USE_EIGHT_BYTE_VALUES
197+ auto eightByteValue = getEightByte (resources);
198198#else
199199 (void )resources; // silence warning
200200#endif
@@ -208,9 +208,9 @@ class VariantData {
208208 return static_cast <T>(content_.asInt32 );
209209#if ARDUINOJSON_USE_LONG_LONG
210210 case VariantType::Uint64:
211- return static_cast <T>(extension ->asUint64 );
211+ return static_cast <T>(eightByteValue ->asUint64 );
212212 case VariantType::Int64:
213- return static_cast <T>(extension ->asInt64 );
213+ return static_cast <T>(eightByteValue ->asInt64 );
214214#endif
215215 case VariantType::TinyString:
216216 str = content_.asTinyString ;
@@ -225,7 +225,7 @@ class VariantData {
225225 return static_cast <T>(content_.asFloat );
226226#if ARDUINOJSON_USE_DOUBLE
227227 case VariantType::Double:
228- return static_cast <T>(extension ->asDouble );
228+ return static_cast <T>(eightByteValue ->asDouble );
229229#endif
230230 default :
231231 return 0.0 ;
@@ -238,8 +238,8 @@ class VariantData {
238238 template <typename T>
239239 T asIntegral (const ResourceManager* resources) const {
240240 static_assert (is_integral<T>::value, " T must be an integral type" );
241- #if ARDUINOJSON_USE_EXTENSIONS
242- auto extension = getExtension (resources);
241+ #if ARDUINOJSON_USE_EIGHT_BYTE_VALUES
242+ auto eightByteValue = getEightByte (resources);
243243#else
244244 (void )resources; // silence warning
245245#endif
@@ -253,9 +253,9 @@ class VariantData {
253253 return convertNumber<T>(content_.asInt32 );
254254#if ARDUINOJSON_USE_LONG_LONG
255255 case VariantType::Uint64:
256- return convertNumber<T>(extension ->asUint64 );
256+ return convertNumber<T>(eightByteValue ->asUint64 );
257257 case VariantType::Int64:
258- return convertNumber<T>(extension ->asInt64 );
258+ return convertNumber<T>(eightByteValue ->asInt64 );
259259#endif
260260 case VariantType::TinyString:
261261 str = content_.asTinyString ;
@@ -270,7 +270,7 @@ class VariantData {
270270 return convertNumber<T>(content_.asFloat );
271271#if ARDUINOJSON_USE_DOUBLE
272272 case VariantType::Double:
273- return convertNumber<T>(extension ->asDouble );
273+ return convertNumber<T>(eightByteValue ->asDouble );
274274#endif
275275 default :
276276 return 0 ;
@@ -314,8 +314,8 @@ class VariantData {
314314 }
315315 }
316316
317- #if ARDUINOJSON_USE_EXTENSIONS
318- const VariantExtension* getExtension (const ResourceManager* resources) const ;
317+ #if ARDUINOJSON_USE_8_BYTE_VALUES
318+ const EightByteValue* getEightByte (const ResourceManager* resources) const ;
319319#endif
320320
321321 VariantData* getElement (size_t index,
@@ -378,7 +378,7 @@ class VariantData {
378378 template <typename T>
379379 bool isInteger (const ResourceManager* resources) const {
380380#if ARDUINOJSON_USE_LONG_LONG
381- auto extension = getExtension (resources);
381+ auto eightByteValue = getEightByte (resources);
382382#else
383383 (void )resources; // silence warning
384384#endif
@@ -391,10 +391,10 @@ class VariantData {
391391
392392#if ARDUINOJSON_USE_LONG_LONG
393393 case VariantType::Uint64:
394- return canConvertNumber<T>(extension ->asUint64 );
394+ return canConvertNumber<T>(eightByteValue ->asUint64 );
395395
396396 case VariantType::Int64:
397- return canConvertNumber<T>(extension ->asInt64 );
397+ return canConvertNumber<T>(eightByteValue ->asInt64 );
398398#endif
399399
400400 default :
0 commit comments