Beispiel #1
0
 public void Read(CBinaryReader br, uint BaseAddress)
 {
     br.Seek(Header.SectionNameAddress - BaseAddress, SeekOrigin.Begin);
     while (br.PeekChar() != 0)
     {
         Name = Name + br.ReadChar();
     }
     br.Seek(Header.RawAddress, SeekOrigin.Begin);
     Data = br.ReadBytes((int)Header.RawSize);
 }
Beispiel #2
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);
 }
Beispiel #3
0
 public XdbfTable(CBinaryReader b, XdbfHeader header)
 {
     b.Seek(30L, SeekOrigin.Begin);
     for (int i = 0; i < header.NumEntries; i++)
     {
         base.Add(new XdbfTableEntry(b));
     }
     while (b.PeekChar() == 0)
     {
         b.ReadByte();
     }
 }