ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream.Deflate C# (CSharp) Méthode

Deflate() protected méthode

Deflates everything in the input buffers. This will call def.deflate() until all bytes from the input buffers are processed.
protected Deflate ( ) : void
Résultat void
        protected void Deflate()
        {
            while (!deflater_.IsNeedingInput) {
                int deflateCount = deflater_.Deflate(buffer_, 0, buffer_.Length);

                if (deflateCount <= 0) {
                    break;
                }
                if (cryptoTransform_ != null) {
                    EncryptBlock(buffer_, 0, deflateCount);
                }

                baseOutputStream_.Write(buffer_, 0, deflateCount);
            }

            if (!deflater_.IsNeedingInput) {
                throw new SharpZipBaseException("DeflaterOutputStream can't deflate all input?");
            }
        }