mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 04:22:18 +02:00
27 lines
398 B
C
27 lines
398 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include "JsonBuffer.h"
|
||
|
|
||
|
template<int CAPACITY>
|
||
|
class StaticJsonBuffer //: public JsonBuffer
|
||
|
{
|
||
|
public:
|
||
|
virtual ~StaticJsonBuffer() {}
|
||
|
|
||
|
int capacity()
|
||
|
{
|
||
|
return CAPACITY;
|
||
|
}
|
||
|
|
||
|
int size()
|
||
|
{
|
||
|
return _size;
|
||
|
}
|
||
|
|
||
|
protected:
|
||
|
//virtual JsonNode& allocateNode();
|
||
|
|
||
|
private:
|
||
|
//JsonNode _buffer[CAPACITY];
|
||
|
int _size;
|
||
|
};
|