MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / writeFile

Function writeFile

src/basicio.cpp:1746–1752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1744}
1745
1746size_t writeFile(const DataBuf& buf, const std::string& path) {
1747 FileIo file(path);
1748 if (file.open("wb") != 0) {
1749 throw Error(ErrorCode::kerFileOpenFailed, path, "wb", strError());
1750 }
1751 return file.write(buf.c_data(), buf.size());
1752}
1753#endif
1754
1755#ifdef EXV_USE_CURL

Callers 2

writeFileMethod · 0.85
writeFileMethod · 0.85

Calls 6

ErrorFunction · 0.85
strErrorFunction · 0.85
c_dataMethod · 0.80
openMethod · 0.45
writeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected