MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / read

Method read

lib/usb/serial.cc:226–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224SerialPort::~SerialPort() {}
225
226void SerialPort::read(uint8_t* buffer, size_t len)
227{
228 while (len != 0)
229 {
230 // std::cout << "want " << len << " " << std::flush;
231 size_t rlen = this->readImpl(buffer, len);
232 // std::cout << "got " << rlen << "\n" << std::flush;
233 buffer += rlen;
234 len -= rlen;
235 }
236}
237
238void SerialPort::read(Bytes& bytes)
239{

Callers 15

readBytesMethod · 0.95
readByteMethod · 0.95
decodeSectorRecordMethod · 0.45
decodeDataRecordMethod · 0.45
decodeDataRecordMethod · 0.45
decodeSectorRecordMethod · 0.45
decodeSectorRecordMethod · 0.45
decodeSectorRecordMethod · 0.45
decodeDataRecordMethod · 0.45
decodeSectorRecordMethod · 0.45
decodeDataRecordMethod · 0.45
isSqliteFunction · 0.45

Calls 3

readImplMethod · 0.80
beginMethod · 0.45
sizeMethod · 0.45

Tested by 1

test_readFunction · 0.36