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

ClearMustFlush() private method

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

Usage Example

示例#1
0
        internal void ThrowBytesOverflow(EncoderNLS encoder, bool nothingEncoded)
        {
            if (encoder == null || encoder.m_throwOnOverflow || nothingEncoded)
            {
                if (encoder != null && encoder.InternalHasFallbackBuffer)
                    encoder.FallbackBuffer.InternalReset();
                // Special message to include fallback type in case fallback's GetMaxCharCount is broken
                // This happens if user has implimented an encoder fallback with a broken GetMaxCharCount
                ThrowBytesOverflow();
            }

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