Org.BouncyCastle.Utilities.Zlib.ZStream.deflate C# (CSharp) Method

deflate() public method

public deflate ( int flush ) : int
flush int
return int
        public int deflate(int flush){
            if(dstate==null){
                return Z_STREAM_ERROR;
            }
            return dstate.deflate(this, flush);
        }
        public int deflateEnd(){

Usage Example

コード例 #1
0
ファイル: Deflate.cs プロジェクト: UnforeseenOcean/Warmode
        internal int deflateParams(ZStream strm, int _level, int _strategy)
        {
            int result = 0;

            if (_level == -1)
            {
                _level = 6;
            }
            if (_level < 0 || _level > 9 || _strategy < 0 || _strategy > 2)
            {
                return(-2);
            }
            if (Deflate.config_table[this.level].func != Deflate.config_table[_level].func && strm.total_in != 0L)
            {
                result = strm.deflate(1);
            }
            if (this.level != _level)
            {
                this.level            = _level;
                this.max_lazy_match   = Deflate.config_table[this.level].max_lazy;
                this.good_match       = Deflate.config_table[this.level].good_length;
                this.nice_match       = Deflate.config_table[this.level].nice_length;
                this.max_chain_length = Deflate.config_table[this.level].max_chain;
            }
            this.strategy = _strategy;
            return(result);
        }
All Usage Examples Of Org.BouncyCastle.Utilities.Zlib.ZStream::deflate