Beispiel #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];
            }
Beispiel #2
0
 internal ParadoxRecord(ParadoxFile.DataBlock block, int recIndex)
 {
     this.block = block;
     this.recIndex = recIndex;
 }
Beispiel #3
0
 public ParadoxDataReader(ParadoxFile file, IEnumerable<ParadoxRecord> query)
 {
     this.File = file;
     this.enumerator = query.GetEnumerator();
 }