mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			386 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			386 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright Benoit Blanchon 2014-2015
 | |
| // MIT License
 | |
| //
 | |
| // Arduino JSON library
 | |
| // https://github.com/bblanchon/ArduinoJson
 | |
| 
 | |
| #include "../../include/ArduinoJson/Internals/StaticStringBuilder.hpp"
 | |
| 
 | |
| using namespace ArduinoJson::Internals;
 | |
| 
 | |
| size_t StaticStringBuilder::write(uint8_t c) {
 | |
|   if (length >= capacity) return 0;
 | |
| 
 | |
|   buffer[length++] = c;
 | |
|   buffer[length] = '\0';
 | |
|   return 1;
 | |
| }
 |