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

Method writeToFile

src/helper/readwrite.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
38 if (file.is_open()) {
39 file.seekp(pos);
40 file << value;
41 }
42}
43
44bool ReadWrite::isAcpiEc() const {
45 if (QFile::exists(acpi_ec_file)) {

Callers 1

putValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected