MemoryPool calls the Allocator directly

This commit is contained in:
Benoit Blanchon committed 2023-03-20 15:03:09 +01:00
1 parent 540901e219
commit 5faa3df43f
10 files changed
+131 -86

No files matched your search

+1 -2
View File
@@ -11,8 +11,7 @@ using namespace ArduinoJson::detail;
static const size_t poolCapacity = 512;
TEST_CASE("MemoryPool::clear()") {
char buffer[poolCapacity];
MemoryPool pool(buffer, sizeof(buffer));
MemoryPool pool(poolCapacity);
SECTION("Discards allocated variants") {
pool.allocVariant();