summaryrefslogtreecommitdiff
path: root/doc/functions/TIFFFlush.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/functions/TIFFFlush.rst')
-rw-r--r--doc/functions/TIFFFlush.rst50
1 files changed, 50 insertions, 0 deletions
diff --git a/doc/functions/TIFFFlush.rst b/doc/functions/TIFFFlush.rst
new file mode 100644
index 00000000..843765f3
--- /dev/null
+++ b/doc/functions/TIFFFlush.rst
@@ -0,0 +1,50 @@
+TIFFFlush
+=========
+
+Synopsis
+--------
+
+.. highlight:: c
+
+::
+
+ #include <tiffio.h>
+
+.. c:function:: int TIFFFlush(TIFF* tif)
+
+.. c:function:: int TIFFFlushData(TIFF* tif)
+
+Description
+-----------
+
+:c:func:`TIFFFlush` causes any pending writes for the specified file
+(including writes for the current directory) to be done. In normal
+operation this call is never needed—the library automatically does
+any flushing required.
+
+:c:func:`TIFFFlushData` flushes any pending image data for the specified
+file to be written out; directory-related data are not flushed. In normal
+operation this call is never needed—the library automatically does any
+flushing required.
+
+Return values
+-------------
+
+0 is returned if an error is encountered, otherwise 1 is returned.
+
+Diagnostics
+-----------
+
+All error messages are directed to the :c:func:`TIFFError` routine.
+
+See also
+--------
+
+:doc:`TIFFOpen` (3tiff),
+:doc:`TIFFWriteEncodedStrip` (3tiff),
+:doc:`TIFFWriteEncodedTile` (3tiff),
+:doc:`TIFFWriteRawStrip` (3tiff),
+:doc:`TIFFWriteRawTile` (3tiff),
+:doc:`TIFFWriteScanline` (3tiff),
+:doc:`TIFFWriteTile` (3tiff),
+:doc:`libtiff` (3tiff),