ClearMustFlush() private method

private ClearMustFlush ( ) : void
return void
Esempio n. 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();
        }
 internal void ThrowCharsOverflow(DecoderNLS decoder, bool nothingDecoded)
 {
     if (((decoder == null) || decoder.m_throwOnOverflow) || nothingDecoded)
     {
         if ((decoder != null) && decoder.InternalHasFallbackBuffer)
         {
             decoder.FallbackBuffer.InternalReset();
         }
         this.ThrowCharsOverflow();
     }
     decoder.ClearMustFlush();
 }
Esempio n. 3
0
        internal void ThrowCharsOverflow(DecoderNLS decoder, bool nothingDecoded)
        {
            if (decoder == null || decoder.m_throwOnOverflow || nothingDecoded)
            {
                if (decoder != null && decoder.InternalHasFallbackBuffer)
                    decoder.FallbackBuffer.InternalReset();

                ThrowCharsOverflow();
            }

            // If we didn't throw, we are in convert and have to remember our flushing
            decoder.ClearMustFlush();
        }