| 209 | } |
| 210 | |
| 211 | string TiffEntry::getString() const { |
| 212 | if (type != TIFF_ASCII && type != TIFF_BYTE) |
| 213 | ThrowTPE("Wrong type 0x%x encountered. Expected Ascii or Byte", type); |
| 214 | |
| 215 | // *NOT* ByteStream::peekString() ! |
| 216 | const auto bufSize = data.getRemainSize(); |
| 217 | const auto* buf = data.peekData(bufSize); |
| 218 | const auto* s = reinterpret_cast<const char*>(buf); |
| 219 | return {s, strnlen(s, bufSize)}; |
| 220 | } |
| 221 | |
| 222 | const DataBuffer &TiffEntry::getRootIfdData() const { |
| 223 | TiffIFD* p = parent; |
nothing calls this directly
no test coverage detected