BitMiracle.LibTiff.Classic.Tiff.FlushData C# (CSharp) Method

FlushData() public method

Flushes any pending image data for the specified file to be written out.
FlushData 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.
public FlushData ( ) : bool
return bool
        public bool FlushData()
        {
            if ((m_flags & TiffFlags.BEENWRITING) != TiffFlags.BEENWRITING)
                return false;

            if ((m_flags & TiffFlags.POSTENCODE) == TiffFlags.POSTENCODE)
            {
                m_flags &= ~TiffFlags.POSTENCODE;
                if (!m_currentCodec.PostEncode())
                    return false;
            }

            return flushData1();
        }
Tiff