示例#1
0
 private void method_0(Stream stream_0, GEnum3 genum3_0)
 {
     stream_0.Seek(0L, SeekOrigin.Begin);
     byte[] buffer1 = new byte[8];
     stream_0.Read(buffer1, 0, 4);
     this.uint_1 = GClass27.smethod_5(BitConverter.ToUInt32(buffer1, 0));
     stream_0.Read(this.byte_7, 0, this.byte_7.Length);
     stream_0.Read(this.byte_4, 0, this.byte_4.Length);
     stream_0.Read(this.byte_3, 0, this.byte_3.Length);
     stream_0.Read(buffer1, 0, 4);
     this.byte_9 = buffer1[0];
     this.byte_2 = buffer1[1];
     this.byte_8 = buffer1[2];
     this.byte_5 = buffer1[3];
     stream_0.Read(buffer1, 0, 8);
     stream_0.Read(buffer1, 0, 8);
     this.TitleId = GClass27.smethod_6(BitConverter.ToUInt64(buffer1, 0));
     stream_0.Read(buffer1, 0, 4);
     this.uint_2 = GClass27.smethod_5(BitConverter.ToUInt32(buffer1, 0));
     stream_0.Read(buffer1, 0, 2);
     this.ushort_3 = GClass27.smethod_4(BitConverter.ToUInt16(buffer1, 0));
     stream_0.Read(buffer1, 0, 2);
     this.ushort_4 = GClass27.smethod_4(BitConverter.ToUInt16(buffer1, 0));
     stream_0.Read(buffer1, 0, 2);
     this.ushort_6 = GClass27.smethod_4(BitConverter.ToUInt16(buffer1, 0));
     stream_0.Read(this.byte_6, 0, this.byte_6.Length);
     stream_0.Read(buffer1, 0, 4);
     this.uint_0 = GClass27.smethod_5(BitConverter.ToUInt32(buffer1, 0));
     stream_0.Read(buffer1, 0, 8);
     this.TitleVersion  = GClass27.smethod_4(BitConverter.ToUInt16(buffer1, 0));
     this.NumOfContents = GClass27.smethod_4(BitConverter.ToUInt16(buffer1, 2));
     this.ushort_2      = GClass27.smethod_4(BitConverter.ToUInt16(buffer1, 4));
     this.ushort_5      = GClass27.smethod_4(BitConverter.ToUInt16(buffer1, 6));
     if (genum3_0 != GEnum3.const_3)
     {
         stream_0.Position = 2820L;
     }
     this.list_0 = new List <GClass101>();
     for (int index = 0; index < (int)this.NumOfContents; ++index)
     {
         GClass101 gclass101;
         if (genum3_0 != GEnum3.const_1 && genum3_0 != GEnum3.const_3)
         {
             if (genum3_0 != GEnum3.const_0)
             {
                 throw new NotImplementedException();
             }
             GClass102 gclass102 = new GClass102();
             gclass102.Hash = new byte[32];
             gclass101      = (GClass101)gclass102;
         }
         else
         {
             GClass103 gclass103 = new GClass103();
             gclass103.Hash = new byte[20];
             gclass101      = (GClass101)gclass103;
         }
         stream_0.Read(buffer1, 0, 8);
         gclass101.ContentId = GClass27.smethod_5(BitConverter.ToUInt32(buffer1, 0));
         gclass101.Index     = GClass27.smethod_4(BitConverter.ToUInt16(buffer1, 4));
         gclass101.GEnum6_0  = (GEnum6)GClass27.smethod_4(BitConverter.ToUInt16(buffer1, 6));
         stream_0.Read(buffer1, 0, 8);
         gclass101.Size = new DataSize(GClass27.smethod_6(BitConverter.ToUInt64(buffer1, 0)));
         stream_0.Read(gclass101.Hash, 0, gclass101.Hash.Length);
         this.list_0.Add(gclass101);
         if (genum3_0 == GEnum3.const_1)
         {
             byte[] buffer2 = new byte[12];
             stream_0.Read(buffer2, 0, 12);
         }
     }
     stream_0.Read(this.Certificate1, 0, this.Certificate1.Length);
     stream_0.Read(this.Certificate2, 0, this.Certificate2.Length);
 }