Moved implementation is a new folder

This commit is contained in:
Benoît Blanchon
2014-07-01 13:50:54 +02:00
parent 4d5a7114c1
commit a9b8e280fe
11 changed files with 24 additions and 22 deletions

View File

@ -0,0 +1,26 @@
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#pragma once
#include "Print.h"
class StringBuilder : public Print
{
public:
StringBuilder(char* buf, int size)
: buffer(buf), capacity(size-1), length(0)
{
buffer[0] = 0;
}
virtual size_t write(char c);
private:
char* buffer;
int capacity;
int length;
};