Stream.h 307 B

1234567891011121314
  1. // ArduinoJson - https://arduinojson.org
  2. // Copyright © 2014-2022, Benoit BLANCHON
  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. };