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