MCPcopy Create free account
hub / github.com/QuiteRSS/quiterss / readAllFileByteContents

Method readAllFileByteContents

src/common/common.cpp:151–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151QByteArray Common::readAllFileByteContents(const QString &filename)
152{
153 QFile file(filename);
154
155 if (!filename.isEmpty() && file.open(QFile::ReadOnly)) {
156 const QByteArray a = file.readAll();
157 file.close();
158 return a;
159 }
160
161 return QByteArray();
162}
163
164void Common::sleep(int ms)
165{

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
readAllMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected