15 size_t write(uint8_t ch)
override {
23 size_t write(
const uint8_t* buffer,
size_t size)
override {
25 for (
int j = 0; j < size; j++) {
26 result +=
write(buffer[j]);
Print to a dynamic string.
Definition: StrPrint.h:12
const char * c_str()
Definition: StrPrint.h:38
size_t length()
Definition: StrPrint.h:40
size_t write(uint8_t ch) override
Definition: StrPrint.h:15
void reset()
Definition: StrPrint.h:42
size_t write(const uint8_t *buffer, size_t size) override
Definition: StrPrint.h:23
bool expand_encoded
Definition: StrPrint.h:51
void consume(int n)
Definition: StrPrint.h:44
void setExpandEncoded(bool flag)
Definition: StrPrint.h:46
int inc_size
Definition: StrPrint.h:50
Str str
Definition: StrPrint.h:49
StrPrint(int incSize=200)
Definition: StrPrint.h:14
virtual void add(int value)
adds a int value
Definition: StrView.h:129
virtual bool replaceAll(const char *toReplace, const char *replaced)
Replaces all instances of toReplace with replaced.
Definition: StrView.h:436
virtual int length()
Definition: StrView.h:380
String implementation which keeps the data on the heap. We grow the allocated memory only if the copy...
Definition: Str.h:22
const char * c_str()
provides the string value as const char*
Definition: Str.h:187
size_t capacity()
Definition: Str.h:81
void reset()
Definition: Str.h:190
void setCapacity(size_t newLen)
Definition: Str.h:83
void remove(int n)
removes the first n characters
Definition: Str.h:209
Definition: Allocator.h:6