public void UpdateFreeClusters(int clustersWritten, BootSector BS)
        {
            int OldClusterCount = BS.CountOfClusters();
            int newClusterCount = OldClusterCount - clustersWritten;

            LastNumberFreeClusters = BitConverter.GetBytes(newClusterCount);
        }
Example #2
0
 public FileAllocationTable(byte[] fat, BootSector bootSector)
 {
     FAT_Table = new MemoryStream(fat);
     BS = bootSector;
 }
Example #3
0
 //Utilizado para crear un nuevo FAT (File Allocation Table)
 public FileAllocationTable(BootSector bootSector)
 {
     BS = bootSector;
 }