| 1234567891011121314151617181920212223242526272829 |
- /*
- * 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* s);
- void appendEscaped(const char* s);
- void appendFormatted(const char* format, ...);
- private:
- char* buffer;
- int capacity;
- int length;
- };
|