Stream.h 295 B

1234567891011121314
  1. // ArduinoJson - arduinojson.org
  2. // Copyright Benoit Blanchon 2014-2019
  3. // MIT License
  4. #pragma once
  5. // Reproduces Arduino's Stream class
  6. class Stream // : public Print
  7. {
  8. public:
  9. virtual ~Stream() {}
  10. virtual int read() = 0;
  11. virtual size_t readBytes(char *buffer, size_t length) = 0;
  12. };