Added DynamicJsonBuffer::clear()

This commit is contained in:
Benoit Blanchon
2017-06-17 16:48:40 +02:00
parent 789fa507b5
commit 476e5aaa86
6 changed files with 105 additions and 25 deletions

View File

@@ -71,7 +71,7 @@ class StaticJsonBufferBase : public JsonBufferBase<StaticJsonBufferBase> {
return doAlloc(bytes);
}
// Resets the size to zero.
// Resets the buffer.
// USE WITH CAUTION: this invalidates all previously allocated data
void clear() {
_size = 0;