Example #1
0
File: FAT.cs Project: blinkseb/FMS
 public abstract uint ReadFATEntry(FATPosition position);
Example #2
0
File: FAT.cs Project: blinkseb/FMS
 protected void SeekToFATPosition(FATPosition position)
 {
     stream.Seek(mbrOffsetInByte + position.sector * bootSector.bytes_per_sector, SeekOrigin.Begin);
 }
Example #3
0
File: FAT.cs Project: 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;
        }