public virtual void LoadData(LodFile parent, int count) { stream.Position = FAT_OFFSET; byte[] record = new byte[32]; for (int i = 0; i < count; i++) { stream.Read(record, 0, 32); FilesTable.Add(new FatRecord(parent, record)); } }
public void AddNewRecord(FatRecord record) { record.Parent = this; int index = IndexOf(record.FileName); if (index >= 0) { return; } if (string.Compare(record.FileName, FilesTable.Last().FileName) == 1) { FilesTable.Add(record); } else { FilesTable.Insert(~index, record); } FileCount++; }