예제 #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));
 }