mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General code refactor and reformat.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user