mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-28 09:47:31 +02:00
20 lines
313 B
C++
20 lines
313 B
C++
// ArduinoJson - arduinojson.org
|
|
// Copyright Benoit Blanchon 2014-2018
|
|
// MIT License
|
|
|
|
#pragma once
|
|
|
|
namespace ARDUINOJSON_NAMESPACE {
|
|
|
|
class DummyWriter {
|
|
public:
|
|
size_t write(uint8_t) {
|
|
return 1;
|
|
}
|
|
|
|
size_t write(const uint8_t*, size_t n) {
|
|
return n;
|
|
}
|
|
};
|
|
} // namespace ARDUINOJSON_NAMESPACE
|