mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-29 18:27:37 +02:00
@ -90,6 +90,10 @@ class AllocatorLog {
|
||||
append(entry);
|
||||
}
|
||||
|
||||
void clear() {
|
||||
log_.str("");
|
||||
}
|
||||
|
||||
void append(const AllocatorLogEntry& entry) {
|
||||
for (size_t i = 0; i < entry.count(); i++)
|
||||
log_ << entry.str() << "\n";
|
||||
@ -165,7 +169,7 @@ class SpyingAllocator : public ArduinoJson::Allocator {
|
||||
}
|
||||
|
||||
void clearLog() {
|
||||
log_ = AllocatorLog();
|
||||
log_.clear();
|
||||
}
|
||||
|
||||
const AllocatorLog& log() const {
|
||||
|
Reference in New Issue
Block a user