TIFFStreamOpen fails to read from a memory stream
I’ve read a GeoTIFF file into a std::vector<std::uint8_t>
which gets passed around as a const ref to various functions. One of those functions I need to open the image as a TIFF*
so I can read some of the tags. As these files can be very large (10s or 100s of megabytes), I don’t want to copy the image in memory. I’ve found these answers which have similar approaches and definitely looked promising, but then TIFFStreamOpen
fails using the following code: