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

CheckpointDirectory() public method

Writes the current state of the TIFF directory into the file to make what is currently in the file/stream readable.
Unlike WriteDirectory, CheckpointDirectory does not free up the directory data structures in memory, so they can be updated (as strips/tiles are written) and written again. Reading such a partial file you will at worst get a TIFF read error for the first strip/tile encountered that is incomplete, but you will at least get all the valid data in the file before that. When the file is complete, just use WriteDirectory as usual to finish it off cleanly.
public CheckpointDirectory ( ) : bool
return bool
        public bool CheckpointDirectory()
        {
            // Setup the strips arrays, if they haven't already been.
            if (m_dir.td_stripoffset == null)
                SetupStrips();

            bool rc = writeDirectory(false);
            SetWriteOffset(seekFile(0, SeekOrigin.End));
            return rc;
        }
Tiff