示例#1
0
 public static Int64 ChsToLba(CylinderHeadSector chs, DISK_GEOMETRY geometry)
 {
     return (chs.Cylinders * geometry.TracksPerCylinder * geometry.SectorsPerTrack) +
            (chs.TracksPerCylinder * geometry.SectorsPerTrack) +
            (chs.SectorsPerTrack - 1);
 }
示例#2
0
 public static Int64 ChsToLba(CylinderHeadSector chs, DISK_GEOMETRY geometry)
 {
     return((chs.Cylinders * geometry.TracksPerCylinder * geometry.SectorsPerTrack) +
            (chs.TracksPerCylinder * geometry.SectorsPerTrack) +
            (chs.SectorsPerTrack - 1));
 }