mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
26 lines
494 B
C++
26 lines
494 B
C++
// ArduinoJson - arduinojson.org
|
|
// Copyright Benoit Blanchon 2014-2018
|
|
// MIT License
|
|
|
|
#pragma once
|
|
|
|
namespace ArduinoJson {
|
|
namespace Internals {
|
|
|
|
template <typename TMemoryPool>
|
|
class StringCopier {
|
|
public:
|
|
StringCopier(TMemoryPool& memoryPool) : _memoryPool(&memoryPool) {}
|
|
|
|
typedef typename TMemoryPool::String String;
|
|
|
|
String startString() {
|
|
return _memoryPool->startString();
|
|
}
|
|
|
|
private:
|
|
TMemoryPool* _memoryPool;
|
|
};
|
|
} // namespace Internals
|
|
} // namespace ArduinoJson
|