MCPcopy Create free account
hub / github.com/dmitry-s93/MControlCenter / readFromFile

Method readFromFile

src/helper/readwrite.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28ReadWrite::ReadWrite() = default;
29
30QByteArray ReadWrite::readFromFile() const {
31 if (QFile file(ioFile); file.open(QIODevice::ReadOnly))
32 return file.readAll();
33 return {};
34}
35
36void ReadWrite::writeToFile(const int pos, BYTE value) const {
37 std::ofstream file(ioFile.toStdString(), std::ios::in | std::ios::out | std::ios::binary);

Callers 1

getDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected