Пример #1
0
        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;
 }