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

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