Esempio n. 1
0
		private void WriteDeflaterOutput(bool isAsync)
		{
			while (!deflater.NeedsInput())
			{
				var compressedBytes = deflater.GetDeflateOutput(buffer);
				if (compressedBytes > 0)
					DoWrite(buffer, 0, compressedBytes, isAsync);
			}
		}
Esempio n. 2
0
 private void WriteDeflaterOutput()
 {
     while (!_deflater.NeedsInput())
     {
         int compressedBytes = _deflater.GetDeflateOutput(_buffer);
         if (compressedBytes > 0)
         {
             DoWrite(_buffer, 0, compressedBytes);
         }
     }
 }