free functions
| 137 | // ************************************************************************* |
| 138 | // free functions |
| 139 | Image::UniquePtr newOrfInstance(BasicIo::UniquePtr io, bool create) { |
| 140 | auto image = std::make_unique<OrfImage>(std::move(io), create); |
| 141 | if (!image->good()) { |
| 142 | return nullptr; |
| 143 | } |
| 144 | return image; |
| 145 | } |
| 146 | |
| 147 | bool isOrfType(BasicIo& iIo, bool advance) { |
| 148 | const int32_t len = 8; |