MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / loadFileData

Method loadFileData

src/database/WizDatabase.cpp:4176–4185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4174}
4175
4176bool WizDatabase::loadFileData(const QString& strFileName, QByteArray& arrayData)
4177{
4178 QFile file(strFileName);
4179 if (!file.open(QFile::ReadOnly))
4180 return false;
4181
4182 arrayData = file.readAll();
4183 file.close();
4184 return !arrayData.isEmpty();
4185}
4186
4187bool WizDatabase::writeDataToDocument(const QString& strDocumentGUID, const QByteArray& arrayData)
4188{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected