mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	nesting
This commit is contained in:
		| @@ -285,13 +285,15 @@ class VariantData { | ||||
|   } | ||||
|  | ||||
|   size_t nesting() const { | ||||
|     if (isPointer()) | ||||
|       return _content.asPointer->nesting(); | ||||
|     return isCollection() ? _content.asCollection.nesting() : 0; | ||||
|   } | ||||
|  | ||||
|   size_t size() const { | ||||
|     return isPointer()      ? _content.asPointer->size() | ||||
|            : isCollection() ? _content.asCollection.size() | ||||
|                             : 0; | ||||
|     if (isPointer()) | ||||
|       return _content.asPointer->size(); | ||||
|     return isCollection() ? _content.asCollection.size() : 0; | ||||
|   } | ||||
|  | ||||
|   VariantData *addElement(MemoryPool *pool) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user