forked from bblanchon/ArduinoJson
Added JsonArray::clear() (fixes #1597)
This commit is contained in:
@ -161,6 +161,12 @@ class ArrayRef : public ArrayRefBase<CollectionData>,
|
||||
_data->removeElement(index);
|
||||
}
|
||||
|
||||
void clear() const {
|
||||
if (!_data)
|
||||
return;
|
||||
_data->clear();
|
||||
}
|
||||
|
||||
private:
|
||||
MemoryPool* _pool;
|
||||
};
|
||||
|
Reference in New Issue
Block a user