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,13 +30,13 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
namespace Aaru.DiscImages;
using System;
using System.Collections.Generic;
using Aaru.Checksums;
using Aaru.CommonTypes.Enums;
namespace Aaru.DiscImages;
public sealed partial class Alcohol120
{
/// <inheritdoc />
@@ -58,10 +58,10 @@ public sealed partial class Alcohol120
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);
@@ -96,10 +96,10 @@ public sealed partial class Alcohol120
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);