mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			410 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			410 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Arduino JSON library
 | |
|  * Benoit Blanchon 2014 - MIT License
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <cstdarg>
 | |
| #include <cstdio>
 | |
| #include <cstring>
 | |
| 
 | |
| class StringBuilder
 | |
| {
 | |
| public:
 | |
|     StringBuilder(char* buf, size_t size)
 | |
|         : buffer(buf), capacity(size), length(0)
 | |
|     {
 | |
|     }
 | |
| 
 | |
|     void append(const char* format, ...);
 | |
| 
 | |
| private:
 | |
|     char* buffer;
 | |
|     int capacity;
 | |
|     int length;
 | |
| };
 | |
| 
 |