Example #1
0
 public void Read(CBinaryReader br, uint BaseAddress)
 {
     br.Seek((long) (this.Header.SectionNameAddress - BaseAddress), SeekOrigin.Begin);
     while (br.PeekChar() != 0)
     {
         this.Name = this.Name + br.ReadChar();
     }
     br.Seek((long) this.Header.RawAddress, SeekOrigin.Begin);
     this.Data = br.ReadBytes((int) this.Header.RawSize);
 }
Example #2
0
 public XdbfHeader(CBinaryReader b)
 {
     b.Seek(0L, SeekOrigin.Begin);
     this.MagicBytes = b.ReadBytes(4);
     this.Version = b.ReadUInt16();
     this.Reserved = b.ReadUInt16();
     this.NumEntries = b.ReadUInt32();
     this.NumEntriesCopy = b.ReadUInt32();
     this.UnknownA = b.ReadUInt32();
     this.UnknownB = b.ReadUInt32();
 }
Example #3
0
 public override void Parse(CBinaryReader br)
 {
     br.Seek((long) base.Address, SeekOrigin.Begin);
     br.Endian = EndianType.BigEndian;
     this.MediaID = br.ReadBytes(4);
     this.Version = br.ReadUInt32();
     this.BaseVersion = br.ReadUInt32();
     this.TitleID = br.ReadBytes(4);
     this.Platform = br.ReadByte();
     this.ExecutableType = br.ReadByte();
     this.DiscNumber = br.ReadByte();
     this.DiscCount = br.ReadByte();
 }