1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +03:00

Improvements for MD5Builder with Stream

This commit is contained in:
Andrew Melvin
2015-12-31 15:04:26 +00:00
parent dff07001a5
commit 7d54f5211c
4 changed files with 46 additions and 3 deletions

View File

@ -87,8 +87,8 @@ class Stream: public Print {
float parseFloat(); // float version of parseInt
size_t readBytes(char *buffer, size_t length); // read chars from stream into buffer
size_t readBytes(uint8_t *buffer, size_t length) {
virtual size_t readBytes(char *buffer, size_t length); // read chars from stream into buffer
virtual size_t readBytes(uint8_t *buffer, size_t length) {
return readBytes((char *) buffer, length);
}
// terminates if length characters have been read or timeout (see setTimeout)