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

Method writeMetadata

src/pngimage.cpp:484–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482} // PngImage::readMetadata
483
484void PngImage::writeMetadata() {
485 if (io_->open() != 0) {
486 throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
487 }
488 IoCloser closer(*io_);
489 MemIo tempIo;
490
491 doWriteMetadata(tempIo); // may throw
492 io_->close();
493 io_->transfer(tempIo); // may throw
494
495} // PngImage::writeMetadata
496
497void PngImage::doWriteMetadata(BasicIo& outIo) {
498 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