Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
DynamicJsonDocument.hpp
00001 // ArduinoJson - arduinojson.org 00002 // Copyright Benoit Blanchon 2014-2021 00003 // MIT License 00004 00005 #pragma once 00006 00007 #include <ArduinoJson/Document/BasicJsonDocument.hpp> 00008 00009 #include <stdlib.h> // malloc, free 00010 00011 namespace ARDUINOJSON_NAMESPACE { 00012 00013 struct DefaultAllocator { 00014 void* allocate(size_t size) { 00015 return malloc(size); 00016 } 00017 00018 void deallocate(void* ptr) { 00019 free(ptr); 00020 } 00021 00022 void* reallocate(void* ptr, size_t new_size) { 00023 return realloc(ptr, new_size); 00024 } 00025 }; 00026 00027 typedef BasicJsonDocument<DefaultAllocator> DynamicJsonDocument; 00028 00029 } // namespace ARDUINOJSON_NAMESPACE
Generated on Wed Jul 13 2022 01:10:36 by
1.7.2