MCPcopy Create free account
hub / github.com/andysworkshop/stm32plus / readWrite

Method readWrite

lib/src/stream/ConnectedInputOutputStream.cpp:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 */
28
29 bool ConnectedInputOutputStream::readWrite() {
30
31 int16_t c;
32
33 while((c=_inputStream.read()) > 0)
34 if(!_outputStream.write(c))
35 return false;
36
37 _outputStream.flush();
38
39 return c == InputStream::E_END_OF_STREAM ? true : false;
40 }
41
42
43 /**

Callers 1

sendFileMethod · 0.80

Calls 3

readMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected