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,15 +30,13 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
// ReSharper disable InconsistentNaming
namespace Aaru.Devices;
using System;
using Aaru.Console;
namespace Aaru.Devices;
public partial class Device
{
/// <summary>Reads the data TOC from an MD-DATA</summary>
@@ -51,7 +49,7 @@ public partial class Device
{
const ushort transferLength = 2336;
senseBuffer = new byte[64];
var cdb = new byte[10];
byte[] cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscReadDTOC;
@@ -82,7 +80,7 @@ public partial class Device
{
const ushort transferLength = 2336;
senseBuffer = new byte[64];
var cdb = new byte[10];
byte[] cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscReadUTOC;
@@ -115,7 +113,7 @@ public partial class Device
{
const ushort transferLength = 4;
senseBuffer = new byte[64];
var cdb = new byte[10];
byte[] cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscD5;
@@ -143,7 +141,7 @@ public partial class Device
public bool MiniDiscStopPlaying(out byte[] buffer, out byte[] senseBuffer, uint timeout, out double duration)
{
senseBuffer = new byte[64];
var cdb = new byte[10];
byte[] cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscStopPlay;
@@ -169,7 +167,7 @@ public partial class Device
{
const ushort transferLength = 4;
senseBuffer = new byte[64];
var cdb = new byte[10];
byte[] cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscReadPosition;
@@ -198,7 +196,7 @@ public partial class Device
{
const ushort transferLength = 8;
senseBuffer = new byte[64];
var cdb = new byte[10];
byte[] cdb = new byte[10];
cdb[0] = (byte)ScsiCommands.MiniDiscGetType;