BitMiracle.LibJpeg.Classic.jpeg_common_struct.jpeg_abort C# (CSharp) Method

jpeg_abort() public method

Abort processing of a JPEG compression or decompression operation, but don't destroy the object itself. Closing a data source or destination, if necessary, is the application's responsibility.
public jpeg_abort ( ) : void
return void
        public void jpeg_abort()
        {
            /* Reset overall state for possible reuse of object */
            if (IsDecompressor)
            {
                m_global_state = JpegState.DSTATE_START;

                /* Try to keep application from accessing now-deleted marker list.
                 * A bit kludgy to do it here, but this is the most central place.
                 */
                jpeg_decompress_struct s = this as jpeg_decompress_struct;
                if (s != null)
                    s.m_marker_list = null;
            }
            else
            {
                m_global_state = JpegState.CSTATE_START;
            }
        }