初始化提交
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// ArduinoJson - arduinojson.org
|
||||
// Copyright Benoit Blanchon 2014-2020
|
||||
// MIT License
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ArduinoJson/StringStorage/StringCopier.hpp>
|
||||
#include <ArduinoJson/StringStorage/StringMover.hpp>
|
||||
|
||||
namespace ARDUINOJSON_NAMESPACE {
|
||||
|
||||
template <typename TInput>
|
||||
StringCopier makeStringStorage(TInput&, MemoryPool& pool) {
|
||||
return StringCopier(pool);
|
||||
}
|
||||
|
||||
template <typename TChar>
|
||||
StringMover makeStringStorage(
|
||||
TChar* input, MemoryPool&,
|
||||
typename enable_if<!is_const<TChar>::value>::type* = 0) {
|
||||
return StringMover(reinterpret_cast<char*>(input));
|
||||
}
|
||||
} // namespace ARDUINOJSON_NAMESPACE
|
||||
Reference in New Issue
Block a user