branch with improvemnts

Fork of M2XStreamClient by AT&T M2X Team

NullPrint.h

Committer:
mazgch
Date:
2014-09-13
Revision:
11:5c71c2948812
Parent:
0:f479e4f4db0e

File content as of revision 11:5c71c2948812:

#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 */