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);
    }
    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));
    }
Beispiel #3
0
    private void method_0(int A_0)
    {
        if (A_0 >= 0)
        {
            Class297 class2 = this.class1004_0.Interface51.imethod_1().method_0()[A_0];
            int      num    = class2.method_6();
            string   key    = class2.method_0();
            this.method_0(num);
            switch (class2.method_2())
            {
            case Class297.EntryType.Storage:
                this.sortedList_0.Add(key, new Class1069(this.class1004_0, class2));
                this.list_0.Add(key);
                break;

            case Class297.EntryType.Stream:
                if (!this.list_1.Contains(key))
                {
                    Stream3 stream = new Stream3(this.class1004_0, class2);
                    this.sortedList_0.Add(key, stream);
                    this.list_1.Add(key);
                }
                break;

            default:
                throw new NotImplementedException();
            }
            int num2 = class2.method_8();
            this.method_0(num2);
        }
    }
    internal Class297 method_17(string A_0, Class297.EntryType A_1)
    {
        DateTime time;
        Class297 class2 = new Class297(A_0, A_1, this.class1003_0.method_0().Count);

        this.class1003_0.method_2(class2);
        class2.method_17(time = DateTime.Now);
        class2.method_19(time);
        return(class2);
    }
Beispiel #5
0
 void IDisposable.Dispose()
 {
     if (this.class1004_0 != null)
     {
         this.class1004_0  = null;
         this.sortedList_0 = null;
         this.class297_0   = null;
         GC.SuppressFinalize(this);
     }
 }
Beispiel #6
0
 void Stream.Dispose(bool A_0)
 {
     if (this.stream_0 != null)
     {
         base.Dispose(A_0);
         this.stream_0.Dispose();
         this.stream_0    = null;
         this.class1004_0 = null;
         this.class297_0  = null;
         GC.SuppressFinalize(this);
     }
 }
 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);
         }
     }
 }
    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);
    }
    private void method_8()
    {
        this.class1003_0 = new Class1003();
        this.class1069_0 = new Class1069(this, BookmarkStart.b("紮帰尲䄴᜶簸唺䤼䴾㡀", 9), 0);
        this.stream_0.SetLength(0x200L);
        this.class938_0 = new Class938();
        this.class357_0 = new Class357();
        Class297 class2 = this.class1069_0.Interface59.imethod_0();

        class2.method_3(Class297.EntryType.Root);
        this.class1003_0.method_2(class2);
        this.class939_0 = new Class939(this.stream_0, this.class938_0.method_9(), 0x200);
    }
Beispiel #10
0
    public Class1069(Class1004 A_0, string A_1, int A_2)
    {
        int num = 13;

        this.sortedList_0 = new SortedList <string, Interface59>(new Class1002());
        this.list_0       = new List <string>();
        this.list_1       = new List <string>();
        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䌲吴䔶尸唺䤼", num));
        }
        this.class1004_0 = A_0;
        this.class297_0  = new Class297(A_1, Class297.EntryType.Storage, A_2);
    }
Beispiel #11
0
    internal void method_2(Class297 A_0)
    {
        int num = this.method_1();

        if (num >= 0)
        {
            this.list_0[num] = A_0;
            A_0.method_27(num);
        }
        else
        {
            this.list_0.Add(A_0);
        }
    }
Beispiel #12
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);
        }
    }
Beispiel #13
0
    public Stream1 imethod_2(string A_0)
    {
        int num = 11;

        if (this.Interface61.imethod_3(A_0) || this.imethod_7(A_0))
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("䈰䜲䜴制堸嘺猼帾ⱀ♂", num), BookmarkStart.b("縰儲弴制娸伺ᴼ䠾⡀㝂ⵄ杆㩈㹊⹌❎煐㵒㑔㩖㱘筚㱜㍞፠٢Ѥͦၨ䭪࡬ᝮᡰrŴѶ", num));
        }
        Class297 class2 = this.class1004_0.method_17(A_0, Class297.EntryType.Stream);
        Stream3  stream = this.class1004_0.method_5() ? new Stream4(this.class1004_0, class2) : new Stream3(this.class1004_0, class2);

        this.list_1.Add(A_0);
        this.sortedList_0.Add(A_0, stream);
        stream.vmethod_1();
        return(new Stream2(stream));
    }
Beispiel #14
0
    public int method_1()
    {
        int num2  = 0;
        int count = this.list_0.Count;

        while (num2 < count)
        {
            Class297 class2 = this.list_0[num2];
            if (class2.method_2() == Class297.EntryType.Invalid)
            {
                return(num2);
            }
            num2++;
        }
        return(-1);
    }
Beispiel #15
0
    internal void method_11(Class297 A_0, Stream A_1)
    {
        int num = 5;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("个䌬嬮䌰䨲", num));
        }
        if (A_1.Length >= this.class938_0.method_19())
        {
            this.method_12(A_0, A_1);
        }
        else
        {
            this.method_13(A_0, A_1);
        }
        A_0.method_23((uint)A_1.Length);
    }
Beispiel #16
0
    public Stream3(Class1004 A_0, Class297 A_1) : base(A_1.method_0())
    {
        int num = 12;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("吱崳娵崷", num));
        }
        if (A_1 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("圱娳䈵䨷䌹", num));
        }
        if (A_1.method_2() != Class297.EntryType.Stream)
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("圱娳䈵䨷䌹", num));
        }
        this.class1004_0 = A_0;
        this.class297_0  = A_1;
    }
Beispiel #17
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);
    }
Beispiel #18
0
    private void method_21(Class297 A_0, long A_1, ref int A_2, ref int A_3)
    {
        int num = this.class939_0.method_0();

        if (A_0.int_9 >= 0)
        {
            int  num2 = ((int)A_1) % num;
            long num3 = (num2 > 0) ? ((A_1 + num) - num2) : A_1;
            if (A_0.int_10 <= num3)
            {
                A_2 = A_0.int_10;
                A_3 = A_0.int_9;
            }
        }
        while (((long)A_2) <= A_1)
        {
            A_3  = this.class939_0.method_2(A_3);
            A_2 += num;
        }
    }
Beispiel #19
0
    public Interface61 imethod_4(string A_0)
    {
        DateTime time;
        int      num = 10;

        if (this.Interface61.imethod_3(A_0) || this.imethod_7(A_0))
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("䌯䘱䘳匵夷圹爻弽ⴿ❁", num), BookmarkStart.b("缯倱帳匵嬷丹᰻䤽⤿㙁ⱃ晅㭇㽉⽋♍灏㱑㕓㭕㵗穙㵛㉝቟ݡգɥᅧ䩩५᙭᥯űsյ", num));
        }
        Class297 class2 = this.class1004_0.method_17(A_0, Class297.EntryType.Storage);

        class2.method_19(time = DateTime.Now);
        class2.method_17(time);
        Class1069 class3 = new Class1069(this.class1004_0, class2);

        this.list_0.Add(A_0);
        this.sortedList_0.Add(A_0, class3);
        class3.method_1();
        return(new Class664(class3));
    }
Beispiel #20
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());
            }
        }
    }
Beispiel #21
0
    private void method_2(Class1157 A_0)
    {
        object obj2 = A_0.method_12();

        if (obj2 != null)
        {
            Class297 class2 = (obj2 as Interface59).imethod_0();
            class2.method_5((byte)A_0.method_6());
            class2.method_7(this.method_3(A_0.method_0()));
            class2.method_9(this.method_3(A_0.method_2()));
            if (this.class297_0.method_10() < 0)
            {
                this.class297_0.method_11(class2.method_26());
            }
            Stream3 stream = obj2 as Stream3;
            if (stream != null)
            {
                class2.method_23((uint)stream.Length);
            }
        }
    }
Beispiel #22
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++;
            }
        }
    }
Beispiel #23
0
    public Class1069(Class1004 A_0, Class297 A_1)
    {
        int num = 0;

        this.sortedList_0 = new SortedList <string, Interface59>(new Class1002());
        this.list_0       = new List <string>();
        this.list_1       = new List <string>();
        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("嘥䤧堩䤫䀭䐯琱崳娵崷", num));
        }
        if (A_1 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䌥䘧帩師圭", num));
        }
        if ((A_1.method_2() != Class297.EntryType.Storage) && (A_1.method_2() != Class297.EntryType.Root))
        {
            throw new ArgumentOutOfRangeException(BookmarkStart.b("䌥䘧帩師圭", num));
        }
        this.class297_0  = A_1;
        this.class1004_0 = A_0;
        this.method_0(A_1.method_10());
    }
Beispiel #24
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);
     }
 }
Beispiel #25
0
 public Stream4(Class1004 A_0, Class297 A_1) : base(A_0, A_1)
 {
 }
 public override void Visit(Class297 c) { }
Beispiel #27
0
 internal int method_19(Class297 A_0, long A_1, byte[] A_2, int A_3)
 {
     throw new Exception(BookmarkStart.b("朲崴制ᤸ嘺堼䬾⥀ⱂ⅄杆♈㥊浌⁎⅐㙒❔㙖ⵘ㉚㉜ㅞ䅠੢ᙤ䝦ݨѪᥬ佮ᡰṲմ᭶ᱸᙺ᡼ᅾꦆ", 13));
 }
 public abstract void Visit(Class297 c);