MCPcopy Create free account
hub / github.com/darktable-org/rawspeed / getString

Method getString

src/librawspeed/tiff/TiffEntry.cpp:211–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211string 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
222const DataBuffer &TiffEntry::getRootIfdData() const {
223 TiffIFD* p = parent;

Callers

nothing calls this directly

Calls 2

getRemainSizeMethod · 0.80
peekDataMethod · 0.80

Tested by

no test coverage detected