mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Code restyle.
This commit is contained in:
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
|||||||
byte realEnd;
|
byte realEnd;
|
||||||
|
|
||||||
if(run)
|
if(run)
|
||||||
realEnd = (byte)((start + end) - 1);
|
realEnd = (byte)(start + end - 1);
|
||||||
else
|
else
|
||||||
realEnd = end;
|
realEnd = end;
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
|||||||
int realEnd;
|
int realEnd;
|
||||||
|
|
||||||
if(run)
|
if(run)
|
||||||
realEnd = (start + end) - 1;
|
realEnd = start + end - 1;
|
||||||
else
|
else
|
||||||
realEnd = end;
|
realEnd = end;
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
|||||||
long realEnd;
|
long realEnd;
|
||||||
|
|
||||||
if(run)
|
if(run)
|
||||||
realEnd = (start + end) - 1;
|
realEnd = start + end - 1;
|
||||||
else
|
else
|
||||||
realEnd = end;
|
realEnd = end;
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
|||||||
sbyte realEnd;
|
sbyte realEnd;
|
||||||
|
|
||||||
if(run)
|
if(run)
|
||||||
realEnd = (sbyte)((start + end) - 1);
|
realEnd = (sbyte)(start + end - 1);
|
||||||
else
|
else
|
||||||
realEnd = end;
|
realEnd = end;
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
|||||||
short realEnd;
|
short realEnd;
|
||||||
|
|
||||||
if(run)
|
if(run)
|
||||||
realEnd = (short)((start + end) - 1);
|
realEnd = (short)(start + end - 1);
|
||||||
else
|
else
|
||||||
realEnd = end;
|
realEnd = end;
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
|||||||
uint realEnd;
|
uint realEnd;
|
||||||
|
|
||||||
if(run)
|
if(run)
|
||||||
realEnd = (start + end) - 1;
|
realEnd = start + end - 1;
|
||||||
else
|
else
|
||||||
realEnd = end;
|
realEnd = end;
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
|||||||
ulong realEnd;
|
ulong realEnd;
|
||||||
|
|
||||||
if(run)
|
if(run)
|
||||||
realEnd = (start + end) - 1;
|
realEnd = start + end - 1;
|
||||||
else
|
else
|
||||||
realEnd = end;
|
realEnd = end;
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ namespace Aaru.CommonTypes.Extents
|
|||||||
ushort realEnd;
|
ushort realEnd;
|
||||||
|
|
||||||
if(run)
|
if(run)
|
||||||
realEnd = (ushort)((start + end) - 1);
|
realEnd = (ushort)(start + end - 1);
|
||||||
else
|
else
|
||||||
realEnd = end;
|
realEnd = end;
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace Aaru.CommonTypes
|
|||||||
/// <summary>Information that does not find space in this struct</summary>
|
/// <summary>Information that does not find space in this struct</summary>
|
||||||
public string Description;
|
public string Description;
|
||||||
/// <summary>LBA of last partition sector</summary>
|
/// <summary>LBA of last partition sector</summary>
|
||||||
public ulong End => (Start + Length) - 1;
|
public ulong End => Start + Length - 1;
|
||||||
/// <summary>Name of partition scheme that contains this partition</summary>
|
/// <summary>Name of partition scheme that contains this partition</summary>
|
||||||
public string Scheme;
|
public string Scheme;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user