예제 #1
0
    internal void method_20(Class297 A_0, long A_1, byte[] A_2, int A_3, int A_4)
    {
        this.class938_0.method_9();
        int  num  = this.class938_0.method_5();
        long num2 = A_0.method_22();
        long num3 = A_1 + A_4;
        int  num4 = (int)Math.Ceiling((double)(((double)num2) / ((double)num)));
        int  num5 = (int)Math.Ceiling((double)(((double)num3) / ((double)num)));

        if (num5 > num4)
        {
            this.method_15(A_0, num4, num5, this.class939_0);
        }
        int num9  = A_0.method_20();
        int num6  = this.class939_0.method_0();
        int num11 = num6;

        this.method_21(A_0, A_1, ref num11, ref num9);
        A_0.int_9  = num9;
        A_0.int_10 = num11;
        int num7 = (int)(A_1 % ((long)num6));

        while (A_4 > 0)
        {
            int  count = Math.Min(A_4, num6 - num7);
            long num10 = this.class939_0.method_16(num9) + num7;
            this.stream_0.Position = num10;
            this.stream_0.Write(A_2, A_3, count);
            num7 = 0;
            A_3 += count;
            A_4 -= count;
            num9 = this.class939_0.method_2(num9);
        }
        A_0.method_23((uint)Math.Max((long)A_0.method_22(), num3));
    }
예제 #2
0
    internal Stream method_10(Class297 A_0)
    {
        int num = 4;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("伩䈫娭䈯䬱", num));
        }
        Stream stream2 = null;

        if (A_0.method_2() == Class297.EntryType.Stream)
        {
            Class939 class2;
            Stream   stream;
            if ((this.class939_1 != null) && (A_0.method_22() < this.class938_0.method_19()))
            {
                class2 = this.class939_1;
                stream = this.stream_1;
            }
            else
            {
                class2 = this.class939_0;
                stream = this.stream_0;
            }
            byte[] buffer = class2.method_1(stream, A_0.method_20(), this);
            stream2 = (buffer != null) ? new MemoryStream(buffer) : new MemoryStream();
            stream2.SetLength((long)A_0.method_22());
        }
        return(stream2);
    }
예제 #3
0
 private void method_15(Class297 A_0, int A_1, int A_2, Class939 A_3)
 {
     if (A_1 != A_2)
     {
         int num  = (A_0.int_9 >= 0) ? A_0.int_9 : A_0.method_20();
         int num2 = this.method_16(num, A_1, A_2, A_3);
         if (num < 0)
         {
             A_0.method_21(num2);
         }
     }
 }
예제 #4
0
    private void method_12(Class297 A_0, Stream A_1)
    {
        this.class938_0.method_9();
        int  num    = this.class938_0.method_5();
        long num2   = A_0.method_22();
        long length = A_1.Length;
        int  num4   = (int)Math.Ceiling((double)(((double)num2) / ((double)num)));
        int  num5   = (int)Math.Ceiling((double)(((double)length) / ((double)num)));

        this.method_15(A_0, num4, num5, this.class939_0);
        this.method_14(this.stream_0, A_0.method_20(), A_1, this.class939_0);
    }
예제 #5
0
    internal void method_18(Class297 A_0)
    {
        int num = 2;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䰧䌩師䬭匯䘱嬳䐵䄷缹刻䨽㈿㭁", num));
        }
        A_0.method_3(Class297.EntryType.Invalid);
        if (A_0.method_2() == Class297.EntryType.Stream)
        {
            this.class939_0.method_3(A_0.method_20());
            A_0.method_21(-1);
        }
    }
예제 #6
0
    private void method_13(Class297 A_0, Stream A_1)
    {
        if (this.stream_1 == null)
        {
            this.stream_1 = new MemoryStream();
        }
        if (this.class939_1 == null)
        {
            this.class939_1 = new Class939(this.stream_1, this.class938_0.method_10(), 0);
        }
        this.class938_0.method_10();
        int  num    = this.class939_1.method_0();
        long num2   = A_0.method_22();
        long length = A_1.Length;
        int  num4   = (int)Math.Ceiling((double)(((double)num2) / ((double)num)));
        int  num5   = (int)Math.Ceiling((double)(((double)length) / ((double)num)));

        this.method_15(A_0, num4, num5, this.class939_1);
        this.method_14(this.stream_1, A_0.method_20(), A_1, this.class939_1);
    }
예제 #7
0
    public void method_7(Stream A_0)
    {
        int num = 0x12;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䬷丹主嬽ℿ⽁", num));
        }
        long         position = A_0.Position;
        int          capacity = (int)(A_0.Length - position);
        MemoryStream stream   = new MemoryStream(capacity);

        stream.SetLength((long)capacity);
        A_0.Read(stream.GetBuffer(), 0, capacity);
        stream.Position = 0L;
        this.stream_0   = stream;
        this.class938_0 = new Class938(this.stream_0);
        this.class357_0 = new Class357(this.stream_0, this.class938_0);
        this.class939_0 = new Class939(this, this.stream_0, this.class357_0, this.class938_0);
        byte[] buffer = this.class939_0.method_1(this.stream_0, this.class938_0.method_16(), this);
        this.class1003_0 = new Class1003(buffer);
        Class297 class2 = this.class1003_0.method_0()[0];

        this.class1069_0 = new Class1069(this, class2);
        int num2 = class2.method_20();

        if (num2 >= 0)
        {
            this.stream_1 = new MemoryStream(this.class939_0.method_1(this.stream_0, num2, this));
            if (this.class938_0.method_20() >= 0)
            {
                this.stream_2   = new MemoryStream(this.class939_0.method_1(this.stream_0, this.class938_0.method_20(), this));
                this.class939_1 = new Class939(this.stream_1, this.class938_0.method_10(), this.stream_2, 0);
            }
            this.class939_0.method_3(num2);
            if (this.class938_0.method_20() >= 0)
            {
                this.class939_0.method_3(this.class938_0.method_20());
            }
        }
    }
예제 #8
0
 private void method_23()
 {
     if ((this.stream_1 != null) && (this.stream_1.Length != 0L))
     {
         int      num    = (int)Math.Ceiling((double)(((double)this.stream_1.Length) / ((double)this.class938_0.method_5())));
         Class297 class2 = this.class1003_0.method_0()[0];
         int      num2   = class2.method_20();
         int      num3   = (int)Math.Ceiling((double)(((double)class2.method_22()) / ((double)this.class939_0.method_0())));
         num2 = this.method_16(num2, num3, num, this.class939_0);
         this.method_14(this.stream_0, num2, this.stream_1, this.class939_0);
         Class297 class3 = this.class1003_0.method_0()[0];
         class3.method_21(num2);
         class3.method_23((uint)this.stream_1.Length);
         MemoryStream stream = new MemoryStream();
         this.class939_1.method_15(stream, this.class938_0.method_5());
         num  = (int)Math.Ceiling((double)(((double)stream.Length) / ((double)this.class938_0.method_5())));
         num2 = this.method_16(this.class938_0.method_20(), this.class938_0.method_22(), num, this.class939_0);
         this.method_14(this.stream_0, num2, stream, this.class939_0);
         this.class938_0.method_21(num2);
         this.class938_0.method_10();
         this.class938_0.method_23(num);
     }
 }
예제 #9
0
    private static void smethod_1(string A_0, Class1003 A_1)
    {
        int num = 2;

        using (StreamWriter writer = new StreamWriter(Path.Combine(A_0, BookmarkStart.b("䰧䌩師䬭匯䘱嬳䐵䄷ᐹ䠻䘽㐿", 2))))
        {
            List <Class297> list  = A_1.method_0();
            int             num2  = 0;
            int             count = list.Count;
            while (num2 < count)
            {
                Class297 class2 = list[num2];
                writer.WriteLine(new string('-', 20));
                writer.WriteLine(BookmarkStart.b("洧䐩堫尭䤯笱倳వᠷ䄹఻䌽", num), class2.method_26());
                writer.WriteLine(BookmarkStart.b("昧䬩䄫䬭ਯሱ伳ص䔷ᘹ᰻笽⸿㙁㙃㽅᱇㍉㱋⭍橏牑⽓杕╗", num), class2.method_0(), class2.method_2());
                writer.WriteLine(BookmarkStart.b("搧伩䨫娭ਯሱ伳ص䔷ᘹ᰻氽⤿╁ⱃ㉅片橉㝋罍ⵏ繑瑓ᕕし㍙せ㩝婟䉡ὣ呥ᕧ", num), class2.method_6(), class2.method_8(), class2.method_10());
                writer.WriteLine(BookmarkStart.b("漧弩䔫䨭ਯሱ伳ص䔷ᘹ᰻稽ℿ㙁⅃Յ㩇⽉ⵋ㩍㕏桑瑓ⵕ楗❙灛繝⑟͡ၣͥ╧թ࡫ݭᙯୱ乳噵ͷ䡹Ż", num), class2.method_12(), class2.method_16(), class2.method_18());
                writer.WriteLine(BookmarkStart.b("笧帩䴫尭䐯愱儳唵䰷唹主н怿㥁瑃㭅摇橉ੋ⅍㹏♑ݓ㽕≗㽙晛繝᭟卡ᥣ", num), class2.method_20(), class2.method_22());
                num2++;
            }
        }
    }