示例#1
0
文件: FATStream.cs 项目: zer09/Cosmos
 private void GetNextCluster()
 {
     CurrentClusterStart += ClusterSize;
     CurrentClusterEnd    = CurrentClusterStart + ClusterSize;
     CurrentClusterNumber = fat.GetNextCluster(CurrentClusterNumber);
     if (CurrentClusterNumber == (fat as FileAllocationTableFAT32).ClusterEOL)
     {
         throw new Exception("end of file");
     }
     CurrentCluster = fs.ReadCluster(CurrentClusterNumber);
 }