mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Code restyling.
This commit is contained in:
@@ -34,12 +34,13 @@ namespace Aaru.DiscImages
|
||||
{
|
||||
public partial class CloneCd
|
||||
{
|
||||
static ulong GetLba(int minute, int second, int frame) => (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) =>
|
||||
msf.minute * 60 * 75 + msf.second * 75 + msf.frame - 150;
|
||||
((msf.minute * 60 * 75) + (msf.second * 75) + msf.frame) - 150;
|
||||
|
||||
static (byte minute, byte second, byte frame) LbaToMsf(ulong sector) =>
|
||||
((byte)((sector + 150) / 75 / 60), (byte)((sector + 150) / 75 % 60), (byte)((sector + 150) % 75));
|
||||
((byte)((sector + 150) / 75 / 60), (byte)(((sector + 150) / 75) % 60), (byte)((sector + 150) % 75));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user