Exemplo n.º 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);
 }
Exemplo n.º 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));
 }