47 char *s = (
char *)txt;
48 while (_len <
_size) {
57 void append(
const __FlashStringHelper *txt)
60 PGM_P s =
reinterpret_cast<PGM_P
>(txt);
61 while (_len <
_size) {
62 unsigned char c = pgm_read_byte(s++);
74 char buf[1 + 3 *
sizeof(int)];
83 char buf[1 + 3 *
sizeof(uint32_t)];
uint16_t getLength()
Definition: StringBuffer.h:30
#define QUOTE
Definition: StringBuffer.h:6
unsigned int _len
The actual used len of the buffer.
Definition: StringBuffer.h:116
void append(char c)
Definition: StringBuffer.h:34
void append(uint32_t num)
Append a number.
Definition: StringBuffer.h:81
Definition: StringBuffer.h:10
void clear()
clear the buffer.
Definition: StringBuffer.h:21
void appendJSON(const char *name, char *value)
Append an object with value in the JSON notation to the buffer.
Definition: StringBuffer.h:99
void append(const char *txt)
Definition: StringBuffer.h:44
void append(const __FlashStringHelper *txt)
Definition: StringBuffer.h:57
char * getBuffer()
Definition: StringBuffer.h:26
StringBuffer(char *buffer, unsigned int bufferSize)
setup a StringBuffer by passing a local char[] variable and it's size.
Definition: StringBuffer.h:13
#define NUL
Definition: StringBuffer.h:2
unsigned int _size
The size of the buffer.
Definition: StringBuffer.h:115
void appendJSON(const char *name, int value)
Append an object with value in the JSON notation to the buffer.
Definition: StringBuffer.h:107
void appendQuoted(const char *txt)
Append a string with enclosing quotes at the given buffer.
Definition: StringBuffer.h:90
char * _buf
The allocated buffer.
Definition: StringBuffer.h:114
void append(int num)
Append a number.
Definition: StringBuffer.h:72