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

Method writeFile

src/preview.cpp:971–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

969
970#ifdef EXV_ENABLE_FILESYSTEM
971size_t PreviewImage::writeFile(const std::string& path) const {
972 std::string name = path + extension();
973 // Todo: Creating a DataBuf here unnecessarily copies the memory
974 DataBuf buf(pData(), size());
975 return Exiv2::writeFile(buf, name);
976}
977#endif
978
979DataBuf PreviewImage::copy() const {

Callers

nothing calls this directly

Calls 2

sizeFunction · 0.85
writeFileFunction · 0.85

Tested by

no test coverage detected