System.Text.Encoding.ThrowCharsOverflow C# (CSharp) Method

ThrowCharsOverflow() private method

private ThrowCharsOverflow ( DecoderNLS decoder, bool nothingDecoded ) : void
decoder DecoderNLS
nothingDecoded bool
return void
        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();
        }

Same methods

Encoding::ThrowCharsOverflow ( ) : void