Ejemplo n.º 1
0
 private void Set109Fats(XLSHeader header, List <Sector> sectors, List <SectorIndex> index)
 {
     foreach (var item in header.Fats)
     {
         var i = item.ToInt();
         if (!item.IsFree)
         {
             FatSector fat = new FatSector(sectors[i].ToStorage().ToStream());
             index.AddRange(fat.Fats);
             sectors[i] = fat;
         }
     }
 }
Ejemplo n.º 2
0
        private void SetRemainFats(XLSHeader header, List <Sector> sectors, List <SectorIndex> index)
        {
            int         difCount;
            SectorIndex difIndex;

            for (difIndex = header.DifStart, difCount = 0;
                 !difIndex.IsEndOfChain && difCount < header.DifCount;
                 ++difCount)
            {
                DifSector dif = new DifSector(sectors[difIndex.ToInt()].ToStorage().ToStream());
                sectors[difIndex.ToInt()] = dif;

                foreach (var item in dif.Fats.Where(i => !i.IsFree))
                {
                    var       i   = item.ToInt();
                    FatSector fat = new FatSector(sectors[i].ToStorage().ToStream());
                    index.AddRange(fat.Fats);
                    sectors[i] = fat;
                }
            }
        }