Пример #1
0
 /// <summary>
 /// Converts a CHS (Cylinder,Head,Sector) address to a LBA (Logical Block Address).
 /// </summary>
 /// <param name="chsAddress">The CHS address to convert</param>
 /// <returns>The Logical Block Address (in sectors)</returns>
 public long ToLogicalBlockAddress(ChsAddress chsAddress)
 {
     return(ToLogicalBlockAddress(chsAddress.Cylinder, chsAddress.Head, chsAddress.Sector));
 }
Пример #2
0
 /// <summary>
 /// Converts a CHS (Cylinder,Head,Sector) address to a LBA (Logical Block Address).
 /// </summary>
 /// <param name="chsAddress">The CHS address to convert</param>
 /// <returns>The Logical Block Address (in sectors)</returns>
 public long ToLogicalBlockAddress(ChsAddress chsAddress)
 {
     return ToLogicalBlockAddress(chsAddress.Cylinder, chsAddress.Head, chsAddress.Sector);
 }