Esempio n. 1
0
            public DataBlock(ParadoxFile file, BinaryReader r)
            {
                this.file        = file;
                this.nextBlock   = r.ReadUInt16();
                this.blockNumber = r.ReadUInt16();
                this.addDataSize = r.ReadInt16();

                this.RecordCount = (addDataSize / file.RecordSize) + 1;
                this.data        = r.ReadBytes(this.RecordCount * file.RecordSize);
                this.recCache    = new ParadoxRecord[this.data.Length];
            }
Esempio n. 2
0
 public ParadoxDataReader(ParadoxFile file, IEnumerable<ParadoxRecord> query)
 {
     this.File = file;
     this.enumerator = query.GetEnumerator();
 }