branch with improvemnts

Fork of M2XStreamClient by AT&T M2X Team

NullPrint.h

Committer:
jb8414
Date:
2014-02-12
Revision:
0:f479e4f4db0e

File content as of revision 0:f479e4f4db0e:

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