forked from bblanchon/ArduinoJson
Moved files into Internals/ and Arduino/
This commit is contained in:
1 parent
1a98fd5dfc
commit
d66a7adc22
19 files changed
+43
-36
No files matched your search
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Arduino JSON library
|
||||
* Benoit Blanchon 2014 - MIT License
|
||||
*/
|
||||
|
||||
#include "StringBuilder.h"
|
||||
|
||||
using namespace ArduinoJson::Internals;
|
||||
|
||||
size_t StringBuilder::write(uint8_t c)
|
||||
{
|
||||
if (length >= capacity) return 0;
|
||||
|
||||
buffer[length++] = c;
|
||||
buffer[length] = 0;
|
||||
return 1;
|
||||
}
|
||||
Reference in new issue
Block a user