MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / read

Method read

ESP32_AP-Flasher/src/contentmanager.cpp:2708–2718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2706 }
2707
2708 int read() override {
2709 findAndReplace();
2710
2711 if (_buffer.length() > 0) {
2712 const int data = _buffer[0];
2713 _buffer.remove(0, 1);
2714 return data;
2715 }
2716
2717 return -1; // No more data
2718 }
2719
2720 int peek() override {
2721 findAndReplace();

Callers 10

copyFileFunction · 0.45
init_webFunction · 0.45
rxSerialTaskFunction · 0.45
rxSerialTask2Function · 0.45
findAndReplaceMethod · 0.45
usbEventCallbackFunction · 0.45
ttfReadMethod · 0.45
pollSerialMethod · 0.45
touch_loopFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected