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

ThrowBytesOverflow() private method

private ThrowBytesOverflow ( EncoderNLS encoder, bool nothingEncoded ) : void
encoder EncoderNLS
nothingEncoded bool
return void
        internal void ThrowBytesOverflow(EncoderNLS encoder, bool nothingEncoded)
        {
            if (encoder == null || encoder.m_throwOnOverflow || nothingEncoded)
            {
                if (encoder != null && encoder.InternalHasFallbackBuffer)
                    encoder.FallbackBuffer.InternalReset();
                ThrowBytesOverflow();
            }

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

Same methods

Encoding::ThrowBytesOverflow ( ) : void