ClearMustFlush() приватный Метод

private ClearMustFlush ( ) : void
Результат void
Пример #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();
        }
 internal void ThrowBytesOverflow(EncoderNLS encoder, bool nothingEncoded)
 {
     if (((encoder == null) || encoder.m_throwOnOverflow) || nothingEncoded)
     {
         if ((encoder != null) && encoder.InternalHasFallbackBuffer)
         {
             encoder.FallbackBuffer.InternalReset();
         }
         this.ThrowBytesOverflow();
     }
     encoder.ClearMustFlush();
 }
Пример #3
0
        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();
        }