|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Adapt borrowed C++ streams to the TIFF client-I/O interface. More...
Go to the source code of this file.
Data Structures | |
| struct | tiffis_data |
| Track a borrowed input stream and its initial position. More... | |
| struct | tiffos_data |
| Track a borrowed output stream and its initial position. More... | |
Functions | |
| static tmsize_t | _tiffosReadProc (thandle_t fd, void *buf, tmsize_t size) |
| Refuse reads on an output-stream adapter. | |
| static tmsize_t | _tiffisReadProc (thandle_t fd, void *buf, tmsize_t size) |
| Read bytes from the borrowed input stream. | |
| static tmsize_t | _tiffosWriteProc (thandle_t fd, void *buf, tmsize_t size) |
| Write bytes to the borrowed output stream. | |
| static tmsize_t | _tiffisWriteProc (thandle_t fd, void *buf, tmsize_t size) |
| Refuse writes on an input-stream adapter. | |
| static uint64_t | _tiffosSeekProc (thandle_t fd, uint64_t off, int whence) |
| Seek the borrowed output stream, with a zero-fill extension fallback. | |
| static uint64_t | _tiffisSeekProc (thandle_t fd, uint64_t off, int whence) |
| Seek the borrowed input stream relative to its recorded TIFF origin. | |
| static uint64_t | _tiffosSizeProc (thandle_t fd) |
| Query the absolute end position of the borrowed stream. | |
| static uint64_t | _tiffisSizeProc (thandle_t fd) |
| Query the absolute end position of the borrowed stream. | |
| static int | _tiffosCloseProc (thandle_t fd) |
| Delete a stream adapter without closing the borrowed stream. | |
| static int | _tiffisCloseProc (thandle_t fd) |
| Delete a stream adapter without closing the borrowed stream. | |
| static int | _tiffDummyMapProcCxx (thandle_t fd, void **base, toff_t *size) |
| Decline mapping for the C++ stream adapter. | |
| static void | _tiffDummyUnmapProcCxx (thandle_t fd, void *base, toff_t size) |
| Provide a no-op unmapper for the C++ stream adapter. | |
| static TIFF * | _tiffStreamOpen (const char *name, const char *mode, void *fd) |
| Allocate a stream context and attach it through TIFFClientOpen(). | |
| TIFF * | TIFFStreamOpen (const char *name, std::ostream *os) |
| Open a TIFF writer over a caller-owned C++ stream. | |
| TIFF * | TIFFStreamOpen (const char *name, std::istream *is) |
| Open a TIFF reader over a caller-owned C++ stream. | |
Adapt borrowed C++ streams to the TIFF client-I/O interface.
Allocation and stream exceptions are not caught by this adapter.
Definition in file tif_stream.cxx.