Esempio n. 1
0
 public override void vmethod_0()
 {
     if (this.arrayList_0 == null)
     {
         return;
     }
     if (this.class193_0 != null)
     {
         this.method_11();
     }
     long num = (long)this.arrayList_0.Count;
     long num2 = 0L;
     foreach (Class193 @class in this.arrayList_0)
     {
         this.method_8(33639248);
         this.method_7(45);
         this.method_7(@class.method_11());
         this.method_7(@class.method_4());
         this.method_7((int)((short)@class.method_27()));
         this.method_8((int)@class.method_17());
         this.method_8((int)@class.method_25());
         if ([email protected]_14() && @class.method_23() < 4294967295L)
         {
             this.method_8((int)@class.method_23());
         }
         else
         {
             this.method_8(-1);
         }
         if ([email protected]_14() && @class.method_21() < 4294967295L)
         {
             this.method_8((int)@class.method_21());
         }
         else
         {
             this.method_8(-1);
         }
         byte[] array = Class186.smethod_4(@class.method_4(), @class.method_20());
         if (array.Length > 65535)
         {
             throw new ZipException("Name too long.");
         }
         Class202 class2 = new Class202(@class.method_29());
         if (@class.method_16())
         {
             class2.method_8();
             if (@class.method_14() || @class.method_21() >= 4294967295L)
             {
                 class2.method_12(@class.method_21());
             }
             if (@class.method_14() || @class.method_23() >= 4294967295L)
             {
                 class2.method_12(@class.method_23());
             }
             if (@class.method_6() >= 4294967295L)
             {
                 class2.method_12(@class.method_6());
             }
             class2.method_9(1);
         }
         else
         {
             class2.method_13(1);
         }
         byte[] array2 = class2.method_0();
         byte[] array3 = (@class.method_32() != null) ? Class186.smethod_4(@class.method_4(), @class.method_32()) : new byte[0];
         if (array3.Length > 65535)
         {
             throw new ZipException("Comment too long.");
         }
         this.method_7(array.Length);
         this.method_7(array2.Length);
         this.method_7(array3.Length);
         this.method_7(0);
         this.method_7(0);
         if (@class.method_8() != -1)
         {
             this.method_8(@class.method_8());
         }
         else if (@class.method_33())
         {
             this.method_8(16);
         }
         else
         {
             this.method_8(0);
         }
         if (@class.method_6() >= 4294967295L)
         {
             this.method_8(-1);
         }
         else
         {
             this.method_8((int)@class.method_6());
         }
         if (array.Length > 0)
         {
             this.stream_0.Write(array, 0, array.Length);
         }
         if (array2.Length > 0)
         {
             this.stream_0.Write(array2, 0, array2.Length);
         }
         if (array3.Length > 0)
         {
             this.stream_0.Write(array3, 0, array3.Length);
         }
         num2 += (long)(46 + array.Length + array2.Length + array3.Length);
     }
     using (Stream25 stream = new Stream25(this.stream_0))
     {
         stream.method_1(num, num2, this.long_1, this.byte_1);
     }
     this.arrayList_0 = null;
 }
Esempio n. 2
0
        public override void vmethod_0()
        {
            if (this.arrayList_0 == null)
            {
                return;
            }
            if (this.class193_0 != null)
            {
                this.method_11();
            }
            long num  = (long)this.arrayList_0.Count;
            long num2 = 0L;

            foreach (Class193 @class in this.arrayList_0)
            {
                this.method_8(33639248);
                this.method_7(45);
                this.method_7(@class.method_11());
                this.method_7(@class.method_4());
                this.method_7((int)((short)@class.method_27()));
                this.method_8((int)@class.method_17());
                this.method_8((int)@class.method_25());
                if ([email protected]_14() && @class.method_23() < 4294967295L)
                {
                    this.method_8((int)@class.method_23());
                }
                else
                {
                    this.method_8(-1);
                }
                if ([email protected]_14() && @class.method_21() < 4294967295L)
                {
                    this.method_8((int)@class.method_21());
                }
                else
                {
                    this.method_8(-1);
                }
                byte[] array = Class186.smethod_4(@class.method_4(), @class.method_20());
                if (array.Length > 65535)
                {
                    throw new ZipException("Name too long.");
                }
                Class202 class2 = new Class202(@class.method_29());
                if (@class.method_16())
                {
                    class2.method_8();
                    if (@class.method_14() || @class.method_21() >= 4294967295L)
                    {
                        class2.method_12(@class.method_21());
                    }
                    if (@class.method_14() || @class.method_23() >= 4294967295L)
                    {
                        class2.method_12(@class.method_23());
                    }
                    if (@class.method_6() >= 4294967295L)
                    {
                        class2.method_12(@class.method_6());
                    }
                    class2.method_9(1);
                }
                else
                {
                    class2.method_13(1);
                }
                byte[] array2 = class2.method_0();
                byte[] array3 = (@class.method_32() != null) ? Class186.smethod_4(@class.method_4(), @class.method_32()) : new byte[0];
                if (array3.Length > 65535)
                {
                    throw new ZipException("Comment too long.");
                }
                this.method_7(array.Length);
                this.method_7(array2.Length);
                this.method_7(array3.Length);
                this.method_7(0);
                this.method_7(0);
                if (@class.method_8() != -1)
                {
                    this.method_8(@class.method_8());
                }
                else if (@class.method_33())
                {
                    this.method_8(16);
                }
                else
                {
                    this.method_8(0);
                }
                if (@class.method_6() >= 4294967295L)
                {
                    this.method_8(-1);
                }
                else
                {
                    this.method_8((int)@class.method_6());
                }
                if (array.Length > 0)
                {
                    this.stream_0.Write(array, 0, array.Length);
                }
                if (array2.Length > 0)
                {
                    this.stream_0.Write(array2, 0, array2.Length);
                }
                if (array3.Length > 0)
                {
                    this.stream_0.Write(array3, 0, array3.Length);
                }
                num2 += (long)(46 + array.Length + array2.Length + array3.Length);
            }
            using (Stream25 stream = new Stream25(this.stream_0))
            {
                stream.method_1(num, num2, this.long_1, this.byte_1);
            }
            this.arrayList_0 = null;
        }