branch with improvemnts
Fork of M2XStreamClient by
Diff: NullPrint.h
- Revision:
- 0:f479e4f4db0e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/NullPrint.h Wed Feb 12 19:43:34 2014 +0000 @@ -0,0 +1,18 @@ +#ifndef NullPrint_h +#define NullPrint_h + +#include "Print.h" + +// Null Print class used to calculate length to print +class NullPrint : public Print { +public: + virtual size_t write(uint8_t b) { + return 1; + } + + virtual size_t write(const uint8_t* buf, size_t size) { + return size; + } +}; + +#endif /* NullPrint_h */