MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / writeToFile

Method writeToFile

lib/core/bytes.cc:329–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329void Bytes::writeToFile(const std::string& filename) const
330{
331 std::ofstream f(filename, std::ios::out | std::ios::binary);
332 if (!f.is_open())
333 error("cannot open output file '{}'", filename);
334
335 f.write((const char*)cbegin(), size());
336 f.close();
337}
338
339void Bytes::writeTo(std::ostream& stream) const
340{

Callers 4

writeImageMethod · 0.80
writeImageMethod · 0.80
mainGetFileFunction · 0.80
OnBrowserSaveButtonMethod · 0.80

Calls 3

errorFunction · 0.85
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected