mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Add documentation to most public symbols
This commit is contained in:
		| @@ -8,6 +8,7 @@ | ||||
|  | ||||
| namespace ARDUINOJSON_NAMESPACE { | ||||
|  | ||||
| // A JsonDocument with a memory pool on the stack. | ||||
| template <size_t desiredCapacity> | ||||
| class StaticJsonDocument : public JsonDocument { | ||||
|   static const size_t _capacity = | ||||
| @@ -45,6 +46,8 @@ class StaticJsonDocument : public JsonDocument { | ||||
|     return *this; | ||||
|   } | ||||
|  | ||||
|   // Reclaims the memory leaked when removing and replacing values. | ||||
|   // https://arduinojson.org/v6/api/jsondocument/garbagecollect/ | ||||
|   void garbageCollect() { | ||||
|     StaticJsonDocument tmp(*this); | ||||
|     set(tmp); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user