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

Method PgfImage

src/pgfimage.cpp:52–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52PgfImage::PgfImage(BasicIo::UniquePtr io, bool create) :
53 Image(ImageType::pgf, mdExif | mdIptc | mdXmp | mdComment, std::move(io)), bSwap_(isBigEndianPlatform()) {
54 if (create && io_->open() == 0) {
55#ifdef EXIV2_DEBUG_MESSAGES
56 std::cerr << "Exiv2::PgfImage:: Creating PGF image to memory\n";
57#endif
58 IoCloser closer(*io_);
59 if (io_->write(pgfBlank, sizeof(pgfBlank)) != sizeof(pgfBlank)) {
60#ifdef EXIV2_DEBUG_MESSAGES
61 std::cerr << "Exiv2::PgfImage:: Failed to create PGF image on memory\n";
62#endif
63 }
64 }
65} // PgfImage::PgfImage
66
67void PgfImage::readMetadata() {
68#ifdef EXIV2_DEBUG_MESSAGES

Callers

nothing calls this directly

Calls 2

openMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected