Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of M2XStreamClient by
NullPrint.h
- Committer:
- jb8414
- Date:
- 2014-09-24
- Revision:
- 12:0c9041dd96a6
- Parent:
- 0:f479e4f4db0e
File content as of revision 12:0c9041dd96a6:
#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 */
