public void UpdateFreeClusters(int clustersWritten, BootSector BS) { int OldClusterCount = BS.CountOfClusters(); int newClusterCount = OldClusterCount - clustersWritten; LastNumberFreeClusters = BitConverter.GetBytes(newClusterCount); }
public FileAllocationTable(byte[] fat, BootSector bootSector) { FAT_Table = new MemoryStream(fat); BS = bootSector; }
//Utilizado para crear un nuevo FAT (File Allocation Table) public FileAllocationTable(BootSector bootSector) { BS = bootSector; }