// Token: 0x06002BE6 RID: 11238 RVA: 0x000AA9B4 File Offset: 0x000A8BB4
 public static long smethod_6(Stream fs)
 {
     byte[] array = new byte[8];
     fs.Position += 4L;
     Class493.smethod_11(fs, array);
     return(BitConverter.ToInt64(array, 0));
 }
 // Token: 0x06002BE7 RID: 11239 RVA: 0x000AA9EC File Offset: 0x000A8BEC
 public static short smethod_7(Stream fs)
 {
     byte[] array = new byte[2];
     fs.Position += 4L;
     Class493.smethod_11(fs, array);
     return(BitConverter.ToInt16(array, 0));
 }
 // Token: 0x06002BE4 RID: 11236 RVA: 0x000AA97C File Offset: 0x000A8B7C
 public static int smethod_4(Stream fs)
 {
     byte[] array = new byte[4];
     fs.Position += 4L;
     Class493.smethod_11(fs, array);
     return(BitConverter.ToInt32(array, 0));
 }
 // Token: 0x06002BE3 RID: 11235 RVA: 0x000AA94C File Offset: 0x000A8B4C
 public static byte[] smethod_3(Stream fs)
 {
     byte[] array = new byte[4];
     Class493.smethod_11(fs, array);
     byte[] array2 = new byte[BitConverter.ToInt32(array, 0)];
     Class493.smethod_11(fs, array2);
     return(array2);
 }
        // Token: 0x06002BE2 RID: 11234 RVA: 0x000AA91C File Offset: 0x000A8B1C
        public static string smethod_2(Stream fs)
        {
            int num = Class493.smethod_4(fs);

            byte[] array = new byte[num];
            Class493.smethod_11(fs, array);
            return(Encoding.UTF8.GetString(array));
        }
 // Token: 0x06002BE1 RID: 11233 RVA: 0x000AA8E0 File Offset: 0x000A8AE0
 public static string smethod_1(Stream fs)
 {
     byte[] array = new byte[4];
     Class493.smethod_11(fs, array);
     byte[] array2 = new byte[BitConverter.ToInt32(array, 0)];
     Class493.smethod_11(fs, array2);
     return(Encoding.UTF8.GetString(array2));
 }
Exemplo n.º 7
0
        // Token: 0x06002BDF RID: 11231 RVA: 0x000AA72C File Offset: 0x000A892C
        public static Class492 smethod_0(byte[] data)
        {
            Class492 @class = new Class492();

            using (MemoryStream memoryStream = new MemoryStream(data))
            {
                byte b = (byte)memoryStream.ReadByte();
                while (!Class493.smethod_9(memoryStream, b, 255))
                {
                    byte b2 = b;
                    switch (b2)
                    {
                    case 1:
                        @class.Action = (Enum93)Class493.smethod_4(memoryStream);
                        break;

                    case 2:
                        @class.UpdateStep = (Enum87)Class493.smethod_4(memoryStream);
                        break;

                    case 3:
                        @class.ExtraData.Add(Class493.smethod_1(memoryStream));
                        if (@class.ExtraDataIsRTF.Count != @class.ExtraData.Count)
                        {
                            @class.ExtraDataIsRTF.Add(false);
                        }
                        break;

                    case 4:
                        @class.ProcessID = Class493.smethod_4(memoryStream);
                        break;

                    case 5:
                        @class.Progress = Class493.smethod_4(memoryStream);
                        break;

                    case 6:
                        @class.ResponseType = (Enum28)Class493.smethod_4(memoryStream);
                        break;

                    default:
                        if (b2 != 128)
                        {
                            Class493.smethod_10(memoryStream, b);
                        }
                        else
                        {
                            @class.ExtraDataIsRTF.Add(true);
                        }
                        break;
                    }
                    b = (byte)memoryStream.ReadByte();
                }
            }
            return(@class);
        }
        // Token: 0x06002BE0 RID: 11232 RVA: 0x000AA848 File Offset: 0x000A8A48
        public static DateTime smethod_0(Stream fs)
        {
            fs.Position += 4L;
            byte[] array = new byte[4];
            Class493.smethod_11(fs, array);
            int year = BitConverter.ToInt32(array, 0);

            Class493.smethod_11(fs, array);
            int month = BitConverter.ToInt32(array, 0);

            Class493.smethod_11(fs, array);
            int day = BitConverter.ToInt32(array, 0);

            Class493.smethod_11(fs, array);
            int hour = BitConverter.ToInt32(array, 0);

            Class493.smethod_11(fs, array);
            int minute = BitConverter.ToInt32(array, 0);

            Class493.smethod_11(fs, array);
            int second = BitConverter.ToInt32(array, 0);

            return(new DateTime(year, month, day, hour, minute, second));
        }
 // Token: 0x06002BE5 RID: 11237 RVA: 0x000146BB File Offset: 0x000128BB
 public static bool smethod_5(Stream fs)
 {
     return(Class493.smethod_4(fs) == 1);
 }