System.IO.Compression.Deflater.NeedsInput C# (CSharp) Method

NeedsInput() public method

public NeedsInput ( ) : bool
return bool
        public bool NeedsInput()
        {
            return 0 == _zlibStream.AvailIn;
        }

Usage Example

Exemplo n.º 1
0
 private void WriteDeflaterOutput()
 {
     while (!_deflater.NeedsInput())
     {
         int compressedBytes = _deflater.GetDeflateOutput(_buffer);
         if (compressedBytes > 0)
         {
             _stream.Write(_buffer, 0, compressedBytes);
         }
     }
 }
All Usage Examples Of System.IO.Compression.Deflater::NeedsInput