MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / saveFile

Method saveFile

src/bzflag/HubLink.cpp:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210
211bool HubLink::saveFile(const std::string& path, const std::string& data) const {
212 // open with binary mode and truncation enabled
213 const std::string gzName = path;
214 std::ostream* out = FILEMGR.createDataOutStream(path, true, true);
215 if (out == NULL) {
216 return false;
217 }
218 *out << data;
219 out->flush();
220 delete out;
221 return true;
222}
223
224
225//============================================================================//

Callers

nothing calls this directly

Calls 2

createDataOutStreamMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected