Replace CopiedString and LinkedString with JsonString

This commit is contained in:
Benoit Blanchon
2022-01-13 16:15:53 +01:00
parent 973858b835
commit 4f6244eef4
11 changed files with 26 additions and 76 deletions

View File

@@ -206,9 +206,9 @@ class MemoryPoolPrint : public Print {
pool->getFreeZone(&_string, &_capacity);
}
CopiedString str() {
String str() {
ARDUINOJSON_ASSERT(_size < _capacity);
return CopiedString(_pool->saveStringFromFreeZone(_size), _size);
return String(_pool->saveStringFromFreeZone(_size), _size, false);
}
size_t write(uint8_t c) {