free functions
| 287 | // ************************************************************************* |
| 288 | // free functions |
| 289 | Image::UniquePtr newPgfInstance(BasicIo::UniquePtr io, bool create) { |
| 290 | auto image = std::make_unique<PgfImage>(std::move(io), create); |
| 291 | if (!image->good()) { |
| 292 | return nullptr; |
| 293 | } |
| 294 | return image; |
| 295 | } |
| 296 | |
| 297 | bool isPgfType(BasicIo& iIo, bool advance) { |
| 298 | const int32_t len = 3; |