forked from bblanchon/ArduinoJson
Removed StaticJsonBuffer.clear()
This commit is contained in:
@ -10,6 +10,9 @@
|
||||
|
||||
namespace ArduinoJson {
|
||||
|
||||
// Implements a JsonBuffer with fixed memory allocation.
|
||||
// The template paramenter CAPACITY specifies the capacity of the buffer in
|
||||
// bytes.
|
||||
template <size_t CAPACITY>
|
||||
class StaticJsonBuffer : public JsonBuffer {
|
||||
public:
|
||||
@ -18,7 +21,7 @@ class StaticJsonBuffer : public JsonBuffer {
|
||||
|
||||
size_t capacity() const { return CAPACITY; }
|
||||
size_t size() const { return _size; }
|
||||
void clear() { _size = 0; }
|
||||
// void clear() { _size = 0; }
|
||||
|
||||
protected:
|
||||
virtual void* alloc(size_t size) {
|
||||
|
Reference in New Issue
Block a user