mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-11-01 08:48:30 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			391 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			391 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "JsonBuffer.h"
 | |
| 
 | |
| #include <new>
 | |
| #include <string.h> // for memset
 | |
| 
 | |
| #include "JsonObject.h"
 | |
| #include "JsonValue.h"
 | |
| #include "Internals/JsonNode.h"
 | |
| 
 | |
| JsonValue JsonBuffer::createValue()
 | |
| {
 | |
|     return JsonValue(createNode());
 | |
| }
 | |
| 
 | |
| JsonNode* JsonBuffer::createNode()
 | |
| {
 | |
|     void* node = allocateNode();
 | |
|     if (!node) return 0;
 | |
|         
 | |
|     return new (node) JsonNode();
 | |
| } |