Example #1
0
 public Xdbf(byte[] Data)
 {
     this.br         = new CBinaryReader(EndianType.BigEndian, new MemoryStream(Data));
     this.header     = new XdbfHeader(this.br);
     this.entries    = new XdbfTable(this.br, this.header);
     this.dataOffset = (uint)this.br.BaseStream.Position;
 }
Example #2
0
 public Xdbf(byte[] Data)
 {
     br         = new CBinaryReader(EndianType.BigEndian, new MemoryStream(Data));
     header     = new XdbfHeader(br);
     entries    = new XdbfTable(br, header);
     dataOffset = (uint)br.BaseStream.Position;
 }
Example #3
0
 public Xdbf(byte[] Data)
 {
     this.br = new CBinaryReader(EndianType.BigEndian, new MemoryStream(Data));
     this.header = new XdbfHeader(this.br);
     this.entries = new XdbfTable(this.br, this.header);
     this.dataOffset = (uint) this.br.BaseStream.Position;
 }
Example #4
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();
     }
 }