| 375 | |
| 376 | template <typename T> |
| 377 | bool isInteger(const ResourceManager* resources) const { |
| 378 | #if ARDUINOJSON_USE_LONG_LONG |
| 379 | auto extension = getExtension(resources); |
| 380 | #else |
| 381 | (void)resources; // silence warning |
| 382 | #endif |
| 383 | switch (type_) { |
| 384 | case VariantType::Uint32: |
| 385 | return canConvertNumber<T>(content_.asUint32); |
| 386 | |
| 387 | case VariantType::Int32: |
| 388 | return canConvertNumber<T>(content_.asInt32); |
| 389 | |
| 390 | #if ARDUINOJSON_USE_LONG_LONG |
| 391 | case VariantType::Uint64: |
| 392 | return canConvertNumber<T>(extension->asUint64); |
| 393 | |
| 394 | case VariantType::Int64: |
| 395 | return canConvertNumber<T>(extension->asInt64); |
| 396 | #endif |
| 397 | |
| 398 | default: |
| 399 | return false; |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | bool isNull() const { |
| 404 | return type_ == VariantType::Null; |
nothing calls this directly
no outgoing calls
no test coverage detected