Example #1
0
 public void method_3(byte[] byte4, int int3, int int4, bool bool0)
 {
     Class1890.method_5(bool0 ? 1 : 0, 3);
     Class1890.method_4();
     Class1890.method_1(int4);
     Class1890.method_1(~int4);
     Class1890.method_2(byte4, int3, int4);
     method_0();
 }
Example #2
0
        public int method_9(byte[] byte0, int int2, int int3)
        {
            var num = int3;

            if (_int1 == 127)
            {
                throw new InvalidOperationException("Deflater closed");
            }
            if (_int1 < 16)
            {
                var num2 = 30720;
                var num3 = _int0 - 1 >> 1;
                if (num3 < 0 || num3 > 3)
                {
                    num3 = 3;
                }
                num2 |= num3 << 6;
                if ((_int1 & 1) != 0)
                {
                    num2 |= 32;
                }
                num2 += 31 - num2 % 31;
                _class1890.method_6(num2);
                if ((_int1 & 1) != 0)
                {
                    var num4 = _class1840.method_4();
                    _class1840.ResetAdler();
                    _class1890.method_6(num4 >> 16);
                    _class1890.method_6(num4 & 65535);
                }
                _int1 = (16 | (_int1 & 12));
            }
            while (true)
            {
                var num5 = _class1890.method_8(byte0, int2, int3);
                int2   += num5;
                _long0 += num5;
                int3   -= num5;
                if (int3 == 0 || _int1 == 30)
                {
                    goto IL_1E2;
                }
                if (!_class1840.method_0((_int1 & 4) != 0, (_int1 & 8) != 0))
                {
                    if (_int1 == 16)
                    {
                        break;
                    }
                    if (_int1 == 20)
                    {
                        if (_int0 != 0)
                        {
                            for (var i = 8 + (-_class1890.method_3() & 7); i > 0; i -= 10)
                            {
                                _class1890.method_5(2, 10);
                            }
                        }
                        _int1 = 16;
                    }
                    else if (_int1 == 28)
                    {
                        _class1890.method_4();
                        if (!_bool0)
                        {
                            var num6 = _class1840.method_4();
                            _class1890.method_6(num6 >> 16);
                            _class1890.method_6(num6 & 65535);
                        }
                        _int1 = 30;
                    }
                }
            }
            return(num - int3);

IL_1E2:
            return(num - int3);
        }