Remove JSON_ARRAY_SIZE(), JSON_OBJECT_SIZE(), and JSON_STRING_SIZE()

This commit is contained in:
Benoit Blanchon
2023-03-29 19:18:06 +02:00
parent 0328f66340
commit 3f43c2b816
36 changed files with 395 additions and 340 deletions

View File

@ -9,7 +9,7 @@ using namespace ArduinoJson::detail;
TEST_CASE("StringCopier") {
SECTION("Works when buffer is big enough") {
MemoryPool pool(addPadding(JSON_STRING_SIZE(5)));
MemoryPool pool(addPadding(sizeofString(5)));
StringCopier str(&pool);
str.startString();
@ -32,7 +32,7 @@ TEST_CASE("StringCopier") {
}
SECTION("Increases size of memory pool") {
MemoryPool pool(addPadding(JSON_STRING_SIZE(6)));
MemoryPool pool(addPadding(sizeofString(6)));
StringCopier str(&pool);
str.startString();