Commit Graph

  • 78a74c4017 Inline slotSize() Benoit Blanchon 2023-07-03 10:23:12 +02:00
  • dae0182914 Convert CollectionIterator to GoF style Benoit Blanchon 2023-07-03 09:40:38 +02:00
  • 0f511b873d VariantPool: store VariantSlots instead of chars Benoit Blanchon 2023-07-03 09:23:18 +02:00
  • 1d96826371 Add a ResourceManager* member to JsonArrayConst, JsonObjectConst, and JsonVariantConst Benoit Blanchon 2023-07-03 09:20:54 +02:00
  • f6b014582f Implement object comparison out of class Benoit Blanchon 2023-07-10 14:59:09 +02:00
  • 555f3dd5fe Implement array comparison out of class Benoit Blanchon 2023-07-10 14:44:55 +02:00
  • 04973ca494 Fix ARDUINOJSON_BIN2ALPHA_0110() Benoit Blanchon 2023-07-12 14:54:58 +02:00
  • 01b9b40bd2 Include ARDUINOJSON_SLOT_OFFSET_SIZE in the namespace name Benoit Blanchon 2023-07-12 14:54:19 +02:00
  • 6c5fde2a55 Fix ARDUINOJSON_BIN2ALPHA_0110() Benoit Blanchon 2023-07-12 14:54:58 +02:00
  • 433fb4b961 Include ARDUINOJSON_SLOT_OFFSET_SIZE in the namespace name Benoit Blanchon 2023-07-12 14:54:19 +02:00
  • c8517ee5b6 Fix double call to size() in serializeMsgPack() Benoit Blanchon 2023-07-12 11:54:20 +02:00
  • afbcc2106e Fix double call to size() in serializeMsgPack() Benoit Blanchon 2023-07-12 11:54:20 +02:00
  • 7b1c012f80 Fix double lookup in to<JsonVariant>() Benoit Blanchon 2023-07-05 21:10:47 +02:00
  • 23b01a89b1 Fix double lookup in to<JsonVariant>() Benoit Blanchon 2023-07-05 16:18:35 +02:00
  • 688e21e75f Add CollectionIterator Benoit Blanchon 2023-06-26 17:41:46 +02:00
  • d921cd6d02 Convert "variant functions" to static member functions Benoit Blanchon 2023-06-26 11:58:46 +02:00
  • af8bdfbc8f Convert "collection function" to static member functions Benoit Blanchon 2023-06-26 11:58:28 +02:00
  • 68b1602c35 Extract ObjectData from CollectionData Benoit Blanchon 2023-06-26 11:42:25 +02:00
  • 7bc73d7849 Extract ArrayData from CollectionData Benoit Blanchon 2023-06-26 10:48:56 +02:00
  • 67bbb4c90d Manage resources in CollectionData Benoit Blanchon 2023-06-23 19:07:41 +02:00
  • c65e8b2201 Fix compilation in pure esp-idf project without arduino 0xFEEDC0DE64 2023-06-21 15:19:46 +02:00
  • fffed4fba6 VariantAttorney: replace ResultOfGetData with a trailing return type 7.x Benoit Blanchon 2023-06-20 18:40:01 +02:00
  • 8d7bbffe10 Simplify JsonObject::operator== Benoit Blanchon 2023-06-20 18:20:39 +02:00
  • 488475fe16 Simplify JsonArray::operator== Benoit Blanchon 2023-06-20 18:18:48 +02:00
  • ba8d102432 Swap the parameters of JsonObject's constructor Benoit Blanchon 2023-06-20 18:08:21 +02:00
  • e96680eb29 Swap the parameters of JsonArray's constructor Benoit Blanchon 2023-06-20 18:06:41 +02:00
  • 4c0fb4eb55 Swap the parameters of JsonVariant's constructor Benoit Blanchon 2023-06-20 18:03:53 +02:00
  • db2fb01795 Replace VariantPtr, VariantConstPtr, JsonPairPtr, and JsonPairConstPtr with Ptr<T> Benoit Blanchon 2023-06-20 17:52:14 +02:00
  • 18ae8ab7b9 Extract arrayEquals() and objectEquals() Benoit Blanchon 2023-06-19 16:43:08 +02:00
  • 87c96f9306 ResourceManager: rename string functions Benoit Blanchon 2023-06-19 11:25:04 +02:00
  • 262747b419 ResourceManager: extract the StringPool class Benoit Blanchon 2023-06-19 11:13:53 +02:00
  • 3e0ba2028c ResourceManager: extract functions to manipulate StringNodes Benoit Blanchon 2023-06-19 11:14:47 +02:00
  • 972f665b07 Wandbox: upgrade to GCC 5.5.0 Benoit Blanchon 2023-06-19 09:03:13 +02:00
  • ecbc8e85d4 Wandbox: upgrade to GCC 5.5.0 6.x Benoit Blanchon 2023-06-19 09:03:13 +02:00
  • 519e32badb ResourceManager: remove unused operator new Benoit Blanchon 2023-06-17 16:16:26 +02:00
  • d90b36c009 Extract VariantPool from ResourceManager Benoit Blanchon 2023-06-17 16:24:12 +02:00
  • 8147625921 ResourceManager: replace allocFromPool() with allocVariant() Benoit Blanchon 2023-06-16 16:09:40 +02:00
  • 2cf7fc5427 Remove unused #includes Benoit Blanchon 2023-06-16 15:29:26 +02:00
  • 4871380060 Rename MemoryPool to ResourceManager Benoit Blanchon 2023-06-17 16:10:56 +02:00
  • 2a663db3c7 MemoryPool: store usage and capacity as integers instead of using pointers Benoit Blanchon 2023-06-14 21:05:42 +02:00
  • 437307a955 MemoryPool: store slots at the beginning of the pool Benoit Blanchon 2023-06-14 11:41:03 +02:00
  • 56b3b4d5a9 MemoryPool: remove unused functions Benoit Blanchon 2023-06-13 14:52:24 +02:00
  • f5355a9eb5 Move all functions from VariantFunctions.hpp to `VariantData.hpp Benoit Blanchon 2023-05-25 18:21:45 +02:00
  • 779ee07de9 Add VariantData::copyFrom() Benoit Blanchon 2023-05-25 18:15:15 +02:00
  • ab4e8547cb Add VariantData::getOrAddElement() Benoit Blanchon 2023-05-25 18:10:22 +02:00
  • 585795d002 Add VariantData::removeElement() Benoit Blanchon 2023-05-25 10:26:01 +02:00
  • 68a167b167 Add VariantData::nesting() Benoit Blanchon 2023-05-25 10:21:11 +02:00
  • 78d4f721ff Add VariantData::removeMember() Benoit Blanchon 2023-05-25 10:18:13 +02:00
  • a97bcb6b2d Add VariantData::getOrAddMember() Benoit Blanchon 2023-05-25 10:13:47 +02:00
  • 2da1f2553d Add VariantData::addElement() Benoit Blanchon 2023-05-25 10:09:12 +02:00
  • c267b55dec Move raw string copy logic into VariantData::setRawString() Benoit Blanchon 2023-05-25 10:06:01 +02:00
  • 3a73ccf027 Move string copy logic into VariantData::setString() Benoit Blanchon 2023-05-25 09:54:52 +02:00
  • 8ab45e6f82 Add JsonVariant::release() Benoit Blanchon 2023-05-25 09:35:40 +02:00
  • da45c4bc4f Fix memory leak in JsonDeserializer when object key is repeated Benoit Blanchon 2023-05-25 09:21:54 +02:00
  • 48acf963fb Remove VariantImpl.hpp Benoit Blanchon 2023-05-23 18:31:41 +02:00
  • ccccd1da11 Sort VariantData's members alphabetically Benoit Blanchon 2023-05-23 18:30:31 +02:00
  • 78a30496be Define all VariantData's member functions inline Benoit Blanchon 2023-05-23 18:04:47 +02:00
  • 636c8c36eb Decouple MemoryPool from VariantSlot Benoit Blanchon 2023-05-22 17:43:50 +02:00
  • 5070fa6562 Rename memberFilter to elementFilter in deserializers Benoit Blanchon 2023-05-22 10:23:43 +02:00
  • d9e035a288 Remove VariantData::isEnclosed() Benoit Blanchon 2023-05-22 09:46:35 +02:00
  • aba8974148 Extract StringNode.hpp Benoit Blanchon 2023-05-22 09:05:48 +02:00
  • 044a4753d2 Rename StringCopier to StringBuilder Benoit Blanchon 2023-05-10 10:12:55 +02:00
  • ff0deee793 Remove string storage policy to always use StringCopier Benoit Blanchon 2023-05-10 10:02:18 +02:00
  • 37357086e2 Remove the zero-copy mode Benoit Blanchon 2023-05-10 09:55:21 +02:00
  • 4d00ed9efc Fix build on ESP32 (caused by espressif/arduino-esp32#7941) Benoit Blanchon 2023-05-02 10:48:02 +02:00
  • cd5566cd40 Add a test for #1922 Benoit Blanchon 2023-05-06 10:32:33 +02:00
  • 9321f8fdab Remove string size from VariantContent (#1650) Benoit Blanchon 2023-05-02 18:44:12 +02:00
  • 167ea08c53 Pass StringNode* to VariantData Benoit Blanchon 2023-05-02 18:29:19 +02:00
  • 5c0338970c Remove StoragePolicy Benoit Blanchon 2023-05-02 17:52:53 +02:00
  • 6b4dd3ff2f Fix build on ESP32 (caused by espressif/arduino-esp32#7941) Benoit Blanchon 2023-05-02 10:48:02 +02:00
  • fead19560c Rename visitRawJson() to visitRawString() Benoit Blanchon 2023-05-02 10:04:09 +02:00
  • 86772d33bc Rename VALUE_IS_OWNED_RAW to VALUE_IS_RAW_STRING Benoit Blanchon 2023-05-02 10:03:37 +02:00
  • a035116018 Remove unused struct RawData Benoit Blanchon 2023-05-02 09:59:57 +02:00
  • 806fa907ab Always store serialized("string") by copy (#1915) Benoit Blanchon 2023-05-02 09:36:40 +02:00
  • 95f5d9d134 Fix compatibility with the Blynk libary (fixes #1914) Benoit Blanchon 2023-04-18 14:48:01 +02:00
  • 03139a08af Set default for ARDUINOJSON_ENABLE_PROGMEM to 1 on AVR Benoit Blanchon 2023-04-12 11:24:49 +02:00
  • acfbf26e37 CI: check build configuration on AVR Benoit Blanchon 2023-04-12 11:09:26 +02:00
  • 461cdaa818 Allow using PROGMEM outside of Arduino (fixes #1903) Benoit Blanchon 2023-04-07 18:19:33 +02:00
  • dd46813dc0 Change naming convention from _member to member_ (fixes #1905) Benoit Blanchon 2023-04-21 18:53:16 +02:00
  • 5d796781fb Increase coverage Benoit Blanchon 2023-04-21 16:23:03 +02:00
  • f5e7570f84 Simplify CollectionData to work only with VariantSlot* Benoit Blanchon 2023-04-17 11:57:19 +02:00
  • 003087406c Reference-count shared strings Benoit Blanchon 2023-04-17 09:46:41 +02:00
  • b7c8e0d25c Decouple VariantData from MemoryPool Benoit Blanchon 2023-04-17 10:41:37 +02:00
  • 52d8a65cbc Fix compatibility with the Blynk libary (fixes #1914) Benoit Blanchon 2023-04-18 14:48:01 +02:00
  • 30c111fd3d Remove callback from storeString() Benoit Blanchon 2023-04-17 09:42:59 +02:00
  • 9d0714efdf Remove unused MemoryPool::_left Benoit Blanchon 2023-04-08 09:29:01 +02:00
  • d8f3058efa Store the strings in the heap Benoit Blanchon 2023-04-11 10:03:47 +02:00
  • 420221f078 Set version to 6.21.2 v6.21.2 Benoit Blanchon 2023-04-12 14:35:25 +02:00
  • 082ae69e86 Set default for ARDUINOJSON_ENABLE_PROGMEM to 1 on AVR Benoit Blanchon 2023-04-12 11:24:49 +02:00
  • 976a6d7594 CI: check build configuration on AVR Benoit Blanchon 2023-04-12 11:09:26 +02:00
  • 7c0fa7c276 Add MemoryPool::deallocPool() Benoit Blanchon 2023-04-08 09:20:27 +02:00
  • 6eb4f45fb9 Tests: ControllableAllocator controls reallocate() too Benoit Blanchon 2023-04-08 09:18:15 +02:00
  • b3132cac3a Tests: add SpyingAllocator::clearLog() Benoit Blanchon 2023-04-07 18:29:54 +02:00
  • d95a3bd19a Tests: add TimebombAllocator Benoit Blanchon 2023-04-07 18:28:41 +02:00
  • 22e4f216c3 Tests: allow ArmoredAllocator to be called multiple times Benoit Blanchon 2023-04-07 18:27:29 +02:00
  • 40daf56b5a Allow using PROGMEM outside of Arduino (fixes #1903) Benoit Blanchon 2023-04-07 18:19:33 +02:00
  • e9850152a7 Tests: replace constants with sizeofString(n) Benoit Blanchon 2023-04-07 14:43:16 +02:00
  • 31ce648e63 Change naming convention from _member to member_ (fixes #1905) Benoit Blanchon 2023-04-07 09:02:23 +02:00
  • 5e0e35615c Double speed of DynamicJsonDocument::garbageCollect() Benoit Blanchon 2023-04-05 16:50:52 +02:00
  • c4b879645a Remove JsonDocument::capacity() Benoit Blanchon 2023-04-02 16:47:37 +02:00