mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Reformat code.
This commit is contained in:
@@ -56,12 +56,12 @@ namespace DiscImageChef.Decoders.Bluray
|
||||
#region Public methods
|
||||
public static BurstCuttingArea? Decode(byte[] BCAResponse)
|
||||
{
|
||||
if(BCAResponse == null)
|
||||
return null;
|
||||
if(BCAResponse == null) return null;
|
||||
|
||||
if(BCAResponse.Length != 68)
|
||||
{
|
||||
DicConsole.DebugWriteLine("BD BCA decoder", "Found incorrect Blu-ray BCA size ({0} bytes)", BCAResponse.Length);
|
||||
DicConsole.DebugWriteLine("BD BCA decoder", "Found incorrect Blu-ray BCA size ({0} bytes)",
|
||||
BCAResponse.Length);
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -80,18 +80,15 @@ namespace DiscImageChef.Decoders.Bluray
|
||||
|
||||
public static string Prettify(BurstCuttingArea? BCAResponse)
|
||||
{
|
||||
if(BCAResponse == null)
|
||||
return null;
|
||||
if(BCAResponse == null) return null;
|
||||
|
||||
BurstCuttingArea response = BCAResponse.Value;
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
#if DEBUG
|
||||
if(response.Reserved1 != 0)
|
||||
sb.AppendFormat("Reserved1 = 0x{0:X2}", response.Reserved1).AppendLine();
|
||||
if(response.Reserved2 != 0)
|
||||
sb.AppendFormat("Reserved2 = 0x{0:X2}", response.Reserved2).AppendLine();
|
||||
if(response.Reserved1 != 0) sb.AppendFormat("Reserved1 = 0x{0:X2}", response.Reserved1).AppendLine();
|
||||
if(response.Reserved2 != 0) sb.AppendFormat("Reserved2 = 0x{0:X2}", response.Reserved2).AppendLine();
|
||||
#endif
|
||||
|
||||
sb.AppendFormat("Blu-ray Burst Cutting Area in hex follows:");
|
||||
@@ -132,5 +129,4 @@ namespace DiscImageChef.Decoders.Bluray
|
||||
}
|
||||
#endregion Public structures
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user