MCPcopy Create free account
hub / github.com/Segs/Segs / saveFile

Function saveFile

Projects/CoX/Utilities/MapViewer/src/PiggTools.cpp:163–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163bool saveFile(const QString &fname,const QByteArray &data)
164{
165 QFile tgt_fl(fname);
166 if(!tgt_fl.open(QFile::WriteOnly)) {
167 qWarning() << "failed to open target file" << fname;
168 return false;
169 }
170 if(data.size()!=tgt_fl.write(data)) {
171 qWarning() << "Failed to write complete file - write error";
172 return false;
173 }
174 return true;
175
176}
177
178bool extractAllFiles(PiggFile &pigg,const QString &tgt_path)
179{

Callers 1

extractAllFilesFunction · 0.70

Calls 2

openMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected