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

Method writeMetadata

src/pgfimage.cpp:116–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void PgfImage::writeMetadata() {
117 if (io_->open() != 0) {
118 throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
119 }
120 IoCloser closer(*io_);
121 MemIo tempIo;
122
123 doWriteMetadata(tempIo); // may throw
124 io_->close();
125 io_->transfer(tempIo); // may throw
126
127} // PgfImage::writeMetadata
128
129void PgfImage::doWriteMetadata(BasicIo& outIo) {
130 if (!io_->isopen())

Callers 1

doWriteMetadataMethod · 0.45

Calls 5

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

Tested by

no test coverage detected