Commit Graph

  • a8329564e2 Remove JsonDocument::garbageCollect() Benoit Blanchon 2023-07-25 14:37:25 +02:00
  • 00c9d8680a Remove memoryUsage() Benoit Blanchon 2023-07-24 17:21:25 +02:00
  • 2fdacb1ca0 Reduce size of CollectionData::clear() Benoit Blanchon 2023-07-24 10:24:33 +02:00
  • 228c4cf9fa JsonDocument: use the copy-and-swap idiom Benoit Blanchon 2023-07-24 10:13:17 +02:00
  • 9d2d257851 Scripts: call wandbox/publish.sh from get-release-page.sh Benoit Blanchon 2023-07-23 18:08:54 +02:00
  • 5458e916ea Show a link to the doc when user passes an unsupported input type Benoit Blanchon 2023-07-23 18:08:21 +02:00
  • 9794ba24b2 Remove duplicate comment block in wandbox's JsonGeneratorExample.cpp Benoit Blanchon 2023-07-23 17:59:27 +02:00
  • 4b00783345 Set version to 6.21.3 v6.21.3 Benoit Blanchon 2023-07-23 17:49:42 +02:00
  • 371fa4667e Scripts: call wandbox/publish.sh from get-release-page.sh Benoit Blanchon 2023-07-23 17:44:06 +02:00
  • 7eec01cdd6 Show a link to the doc when user passes an unsupported input type Benoit Blanchon 2023-07-23 16:39:24 +02:00
  • 1a14499612 Preallocate pool list Benoit Blanchon 2023-07-21 10:38:35 +02:00
  • f427706e06 VariantPoolList: handle SlotId overflow Benoit Blanchon 2023-07-20 19:04:40 +02:00
  • 8be0d57d24 VariantPoolList: reduce the size of capacity_ and count_ Benoit Blanchon 2023-07-20 18:13:07 +02:00
  • 8fcaebb44a Detect null slot id earlier in VariantPoolList::getSlot() Benoit Blanchon 2023-07-20 14:57:44 +02:00
  • bd2d232b40 JsonParseExample: use a const char* instead of a char[] Benoit Blanchon 2023-07-20 14:47:51 +02:00
  • b69a952e69 Examples: remove outdated comments Benoit Blanchon 2023-07-20 14:45:53 +02:00
  • 727a1013ca Recycle removed slots Benoit Blanchon 2023-07-20 17:54:38 +02:00
  • 781e449e78 CollectionData::releaseSlot() takes an iterator Benoit Blanchon 2023-07-20 10:46:37 +02:00
  • d4af8cffa7 Store current and next slot id in CollectionIterator Benoit Blanchon 2023-07-20 10:36:44 +02:00
  • 0f3c73a211 Remove VariantPool::capacity() Benoit Blanchon 2023-07-17 21:08:49 +02:00
  • 0f319e7ca4 Remove capacity from JsonDocument's constructor Benoit Blanchon 2023-07-17 18:15:13 +02:00
  • 42b2840009 Create more memory pools as needed (resolves #1074) Benoit Blanchon 2023-07-17 14:39:57 +02:00
  • 65c67d317a AllocatorLog: support nulls in deallocate() and reallocate() Benoit Blanchon 2023-07-17 14:46:00 +02:00
  • c4e5051a7a Store index of slot in the pool instead of a pointer or a distance Benoit Blanchon 2023-06-14 11:57:31 +02:00
  • 068c40d6ed Add Dev Container configs Benoit Blanchon 2023-03-27 18:59:21 +02:00
  • c203c86a42 CI: add --output-on-failure for coverage and valgrind tasks Benoit Blanchon 2023-07-12 16:18:00 +02:00
  • 8aec448adf Add missing declaration of offsetof() Benoit Blanchon 2023-07-12 09:59:29 +02:00
  • 9538bc32af Implement the object copy at the JsonObject level Benoit Blanchon 2023-07-11 19:03:46 +02:00
  • b2aa0029b9 Implement array copy at the JsonArray level Benoit Blanchon 2023-07-11 18:56:19 +02:00
  • 57e9134540 Implement variant copy at the JsonVariant level Benoit Blanchon 2023-07-10 18:26:45 +02:00
  • fb4cb96c6c Move JsonArray and JsonObject converters to ConverterImpl.hpp Benoit Blanchon 2023-07-10 18:29:44 +02:00
  • 5e3f84c718 Merge all visitXxx() into one overloaded visit() function Benoit Blanchon 2023-07-10 18:27:30 +02:00
  • 64922343e6 visitNull() takes a nullptr_t Benoit Blanchon 2023-07-10 16:14:56 +02:00
  • 1d07abddcd Add nullptr_t Benoit Blanchon 2023-07-10 16:12:36 +02:00
  • 21bf4973de visitRawString() takes a RawString Benoit Blanchon 2023-07-10 15:56:45 +02:00
  • da845ae01d visitString() takes a JsonString Benoit Blanchon 2023-07-10 15:50:33 +02:00
  • 5a9d3422f5 Add JsonVariantVisitor and use it for comparisons Benoit Blanchon 2023-07-10 17:34:11 +02:00
  • 7a9feb4d6e Rename Visitor to VariantDataVisitor Benoit Blanchon 2023-07-10 14:19:54 +02:00
  • 39e8b63746 Remove shallowCopy() Benoit Blanchon 2023-07-03 12:02:24 +02:00
  • c37990d791 CollectionData: addSlot() returns an iterator Benoit Blanchon 2023-07-03 11:53:56 +02:00
  • fac5b5a7a7 CollectionData: allocate the slot in addSlot() Benoit Blanchon 2023-07-03 11:45:14 +02:00
  • 5ceb5d1813 Use CollectionIterator in CollectionData::memoryUsage() Benoit Blanchon 2023-07-03 10:31:17 +02:00
  • ec4c73db0b Use CollectionIterator in CollectionData::nesting() Benoit Blanchon 2023-07-03 10:29:16 +02:00
  • f86b22cf4f Replace slotRelease() with CollectionData::releaseSlot() Benoit Blanchon 2023-07-03 10:26:20 +02:00
  • 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
  • fffed4fba6 VariantAttorney: replace ResultOfGetData with a trailing return type 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 1753785452745976009/tmp_refs/heads/6.x 1753785452745976009/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