General code cleanup and style refactor.

This commit is contained in:
2022-11-15 15:58:43 +00:00
parent f59ecffb59
commit 2f9b7fe0a1
1324 changed files with 36815 additions and 37688 deletions

View File

@@ -30,8 +30,6 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
namespace Aaru.DiscImages;
using System;
using System.Collections.Generic;
using System.IO;
@@ -42,6 +40,8 @@ using Aaru.CommonTypes.Interfaces;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.DiscImages;
public sealed partial class CdrWin
{
/// <inheritdoc />
@@ -167,10 +167,10 @@ public sealed partial class CdrWin
if(errno != ErrorNumber.NoError)
return null;
var bps = (int)(buffer.Length / length);
var sector = new byte[bps];
int bps = (int)(buffer.Length / length);
byte[] sector = new byte[bps];
for(var i = 0; i < length; i++)
for(int i = 0; i < length; i++)
{
Array.Copy(buffer, i * bps, sector, 0, bps);
bool? sectorStatus = CdChecksums.CheckCdSector(sector);
@@ -205,10 +205,10 @@ public sealed partial class CdrWin
if(errno != ErrorNumber.NoError)
return null;
var bps = (int)(buffer.Length / length);
var sector = new byte[bps];
int bps = (int)(buffer.Length / length);
byte[] sector = new byte[bps];
for(var i = 0; i < length; i++)
for(int i = 0; i < length; i++)
{
Array.Copy(buffer, i * bps, sector, 0, bps);
bool? sectorStatus = CdChecksums.CheckCdSector(sector);