Line | |
---|
1 | // Copyright Benoit Blanchon 2014-2016
|
---|
2 | // MIT License
|
---|
3 | //
|
---|
4 | // Arduino JSON library
|
---|
5 | // https://github.com/bblanchon/ArduinoJson
|
---|
6 | // If you like this project, please add a star!
|
---|
7 |
|
---|
8 | #include "../../include/ArduinoJson/Internals/StaticStringBuilder.hpp"
|
---|
9 |
|
---|
10 | using namespace ArduinoJson::Internals;
|
---|
11 |
|
---|
12 | size_t StaticStringBuilder::write(uint8_t c) {
|
---|
13 | if (length >= capacity) return 0;
|
---|
14 |
|
---|
15 | buffer[length++] = c;
|
---|
16 | buffer[length] = '\0';
|
---|
17 | return 1;
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.