ClearMustFlush() private method

private ClearMustFlush ( ) : void
return void
コード例 #1
0
ファイル: Encoding.cs プロジェクト: krytarowski/corert
        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();
        }
コード例 #2
0
 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();
        }