mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
22 lines
358 B
C++
22 lines
358 B
C++
// Copyright Benoit Blanchon 2014
|
|
// MIT License
|
|
//
|
|
// Arduino JSON library
|
|
// https://github.com/bblanchon/ArduinoJson
|
|
|
|
#pragma once
|
|
|
|
#include "../JsonBuffer.hpp"
|
|
|
|
namespace ArduinoJson {
|
|
namespace Internals {
|
|
|
|
class JsonBufferAllocated {
|
|
public:
|
|
void *operator new(size_t n, JsonBuffer *jsonBuffer) throw() {
|
|
return jsonBuffer->alloc(n);
|
|
}
|
|
};
|
|
}
|
|
}
|