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]; }
public ParadoxDataReader(ParadoxFile file, IEnumerable<ParadoxRecord> query) { this.File = file; this.enumerator = query.GetEnumerator(); }