Files
thirdparty-ArduinoJson/include/ArduinoJson/Serialization/DummyPrint.hpp
2017-03-25 22:05:06 +01:00

24 lines
433 B
C++

// Copyright Benoit Blanchon 2014-2017
// MIT License
//
// Arduino JSON library
// https://bblanchon.github.io/ArduinoJson/
// If you like this project, please add a star!
#pragma once
#include "../Print.hpp"
namespace ArduinoJson {
namespace Internals {
// A dummy Print implementation used in JsonPrintable::measureLength()
class DummyPrint : public Print {
public:
virtual size_t write(uint8_t) {
return 1;
}
};
}
}