MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / ReadFromFile

Method ReadFromFile

src/Networking/NetworkBuffer.cpp:72–78  ·  view source on GitHub ↗

Read into the buffer from a file returning the number of bytes read

Source from the content-addressed store, hash-verified

70
71// Read into the buffer from a file returning the number of bytes read
72int NetworkBuffer::ReadFromFile(FileStore *f) noexcept
73{
74 const int ret = f->Read(reinterpret_cast<char *_ecv_array>(data), bufferSize);
75 dataLength = (ret > 0) ? (size_t)ret : 0;
76 readPointer = 0;
77 return ret;
78}
79
80#endif
81

Callers 2

SendPassiveDataMethod · 0.45
SendDataMethod · 0.45

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected