示例#1
0
文件: FAT.cs 项目: blinkseb/FMS
 public abstract uint ReadFATEntry(FATPosition position);
示例#2
0
文件: FAT.cs 项目: blinkseb/FMS
 protected void SeekToFATPosition(FATPosition position)
 {
     stream.Seek(mbrOffsetInByte + position.sector * bootSector.bytes_per_sector, SeekOrigin.Begin);
 }
示例#3
0
文件: FAT.cs 项目: blinkseb/FMS
        public FATPosition GetFATPositionForCluster(uint cluster)
        {
            uint fatOffset = GetFATEntrySize() * cluster;

              FATPosition position = new FATPosition();
              position.sector = bootSector.reserved_sector_count + (fatOffset / bootSector.bytes_per_sector);
              position.sector_offset = fatOffset % bootSector.bytes_per_sector;

              return position;
        }