mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-01 03:26:58 +03:00
SD: Implement readBytes (#4931)
This speeds up the ESP8266WebServer::streamFile more than 3 times. Tested on streaming the 800+ Kb file from SD (FAT32), average time without a fix was 9000 ms, with the fix is 2600 ms (maximal possible SPI speed used), which is as fast as streaming the same file from internal SPIFFS. Hardware: WeMos D1 mini.
This commit is contained in:
committed by
Earle F. Philhower, III
parent
9c46a81fb6
commit
9bc8ea1b58
@ -34,6 +34,7 @@ public:
|
||||
virtual size_t write(uint8_t);
|
||||
virtual size_t write(const uint8_t *buf, size_t size);
|
||||
virtual int read();
|
||||
virtual size_t readBytes(char *buffer, size_t length);
|
||||
virtual int peek();
|
||||
virtual int available();
|
||||
virtual void flush();
|
||||
|
Reference in New Issue
Block a user