System.Text.DecoderNLS.ClearMustFlush C# (CSharp) Method

ClearMustFlush() private method

private ClearMustFlush ( ) : void
return void
        internal void ClearMustFlush()
        {
            m_mustFlush = false;
        }

Usage Example

示例#1
0
        internal void ThrowCharsOverflow(DecoderNLS decoder, bool nothingDecoded)
        {
            if (decoder == null || decoder.m_throwOnOverflow || nothingDecoded)
            {
                if (decoder != null && decoder.InternalHasFallbackBuffer)
                    decoder.FallbackBuffer.InternalReset();

                // Special message to include fallback type in case fallback's GetMaxCharCount is broken
                // This happens if user has implimented a decoder fallback with a broken GetMaxCharCount
                ThrowCharsOverflow();
            }

            // If we didn't throw, we are in convert and have to remember our flushing
            decoder.ClearMustFlush();
        }
All Usage Examples Of System.Text.DecoderNLS::ClearMustFlush