コード例 #1
0
        public void method_17(Stream stream_1)
        {
            if (this.byte_0 != null)
            {
                stream_1 = new FSBClass2(stream_1, this.byte_0);
            }
            BinaryWriter binaryWriter_ = new BinaryWriter(stream_1);

            this.method_18(binaryWriter_);
            this.method_24(binaryWriter_);
            this.method_32(binaryWriter_);
        }
コード例 #2
0
ファイル: FSBClass1.cs プロジェクト: ExileLord/Open-GHTCP
 public static FSBClass1 smethod_0(Stream stream_1)
 {
     FSBClass1 @class = new FSBClass1();
     long position = stream_1.Position;
     try
     {
         @class.method_1(stream_1);
     }
     catch
     {
         stream_1.Position = position;
         FSBClass2 stream = new FSBClass2(stream_1);
         @class = new FSBClass1();
         @class.method_1(stream);
         @class.byte_0 = stream.byte_0;
     }
     @class.stream_0 = stream_1;
     return @class;
 }
コード例 #3
0
        public static FSBClass1 smethod_0(Stream stream_1)
        {
            FSBClass1 @class   = new FSBClass1();
            long      position = stream_1.Position;

            try
            {
                @class.method_1(stream_1);
            }
            catch
            {
                stream_1.Position = position;
                FSBClass2 stream = new FSBClass2(stream_1);
                @class = new FSBClass1();
                @class.method_1(stream);
                @class.byte_0 = stream.byte_0;
            }
            @class.stream_0 = stream_1;
            return(@class);
        }
コード例 #4
0
ファイル: FSBClass1.cs プロジェクト: ExileLord/Open-GHTCP
 public void method_17(Stream stream_1)
 {
     if (this.byte_0 != null)
     {
         stream_1 = new FSBClass2(stream_1, this.byte_0);
     }
     BinaryWriter binaryWriter_ = new BinaryWriter(stream_1);
     this.method_18(binaryWriter_);
     this.method_24(binaryWriter_);
     this.method_32(binaryWriter_);
 }
コード例 #5
0
        private static byte[] smethod_0(Stream stream_1)
        {
            long position = stream_1.Position;

            byte[] array = new byte[65536];
            int    num   = stream_1.Read(array, 0, array.Length);

            Array.Resize <byte>(ref array, num);
            int i = 2;

            while (i < 50)
            {
                byte[] result = FSBClass2.smethod_1(array, i);
                stream_1.Position = position;
                try
                {
                    FSBClass1.smethod_1(stream_1, result);
                    goto IL_FD;
                }
                catch
                {
                }
                i++;
                continue;
IL_FD:
                stream_1.Position = position;
                return(result);
            }
            if (num > 1000)
            {
                Array.Resize <byte>(ref array, 1000);
                int j = 2;
                while (j < 50)
                {
                    byte[] result2 = FSBClass2.smethod_1(array, j);
                    stream_1.Position = position;
                    try
                    {
                        FSBClass1.smethod_1(stream_1, result2);
                        goto IL_9A;
                    }
                    catch
                    {
                    }
                    j++;
                    continue;
IL_9A:
                    stream_1.Position = position;
                    return(result2);
                }
            }
            if (num > 500)
            {
                Array.Resize <byte>(ref array, 500);
                int k = 2;
                while (k < 50)
                {
                    byte[] result3 = FSBClass2.smethod_1(array, k);
                    stream_1.Position = position;
                    try
                    {
                        FSBClass1.smethod_1(stream_1, result3);
                        goto IL_EA;
                    }
                    catch
                    {
                    }
                    k++;
                    continue;
IL_EA:
                    stream_1.Position = position;
                    return(result3);
                }
            }
            stream_1.Position = position;
            return(null);
        }
コード例 #6
0
 public FSBClass2(Stream stream_1) : this(stream_1, FSBClass2.smethod_0(stream_1))
 {
 }