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

Method writeMetadata

src/webpimage.cpp:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91/* =========================================== */
92
93void WebPImage::writeMetadata() {
94 if (io_->open() != 0) {
95 throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
96 }
97 IoCloser closer(*io_);
98 MemIo tempIo;
99
100 doWriteMetadata(tempIo); // may throw
101 io_->close();
102 io_->transfer(tempIo); // may throw
103} // WebPImage::writeMetadata
104
105void WebPImage::doWriteMetadata(BasicIo& outIo) {
106 if (!io_->isopen())

Callers

nothing calls this directly

Calls 5

ErrorFunction · 0.85
strErrorFunction · 0.85
closeMethod · 0.80
transferMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected