Exemplo n.º 1
0
        public static Cluster Load(BootSector bs, ushort clusterNum)
        {
            Cluster       ret     = new Cluster();
            List <Sector> Sectors = new List <Sector>();

            for (int x = 0; x < bs.SectorsPerCluster; x++)
            {
                Sector tmp = new Sector(bs, x + bs.ClusterToSector(clusterNum));
                Sectors.Add(tmp);
            }
            ret.Sectors = Sectors.ToArray();
            ret.number  = clusterNum;
            ret.BPB     = bs;
            return(ret);
        }