General code refactor and reformat.

This commit is contained in:
2018-12-31 13:17:27 +00:00
parent 6b12cd1a8e
commit f2caa8c40f
413 changed files with 3554 additions and 6549 deletions

View File

@@ -34,19 +34,12 @@ namespace DiscImageChef.DiscImages
{
public partial class CloneCd
{
static ulong GetLba(int minute, int second, int frame)
{
return (ulong)(minute * 60 * 75 + second * 75 + frame - 150);
}
static ulong GetLba(int minute, int second, int frame) => (ulong)(minute * 60 * 75 + second * 75 + frame - 150);
static long MsfToLba((byte minute, byte second, byte frame) msf)
{
return msf.minute * 60 * 75 + msf.second * 75 + msf.frame - 150;
}
static long MsfToLba((byte minute, byte second, byte frame) msf) =>
msf.minute * 60 * 75 + msf.second * 75 + msf.frame - 150;
static (byte minute, byte second, byte frame) LbaToMsf(ulong sector)
{
return ((byte)((sector + 150) / 75 / 60), (byte)((sector + 150) / 75 % 60), (byte)((sector + 150) % 75));
}
static (byte minute, byte second, byte frame) LbaToMsf(ulong sector) =>
((byte)((sector + 150) / 75 / 60), (byte)((sector + 150) / 75 % 60), (byte)((sector + 150) % 75));
}
}