General code cleanup and style refactor.

This commit is contained in:
2022-11-15 15:58:41 +00:00
parent aa5278fa0d
commit bc415e205f
120 changed files with 2455 additions and 2554 deletions

View File

@@ -30,8 +30,6 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
namespace Aaru.Decoders.SCSI;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
@@ -39,6 +37,8 @@ using System.Text;
using Aaru.CommonTypes.Structs.Devices.SCSI;
using Aaru.Helpers;
namespace Aaru.Decoders.SCSI;
// Information from the following standards:
// T9/375-D revision 10l
// T10/995-D revision 10
@@ -2429,11 +2429,10 @@ public static class Inquiry
sb.AppendLine("============================================================");
}
if(response.VendorSpecific != null &&
response.IsHiMD)
if(response is { VendorSpecific: {}, IsHiMD: true })
if(response.KreonPresent)
{
var vendor = new byte[7];
byte[] vendor = new byte[7];
Array.Copy(response.VendorSpecific, 11, vendor, 0, 7);
sb.AppendLine("Vendor-specific bytes 47 to 55");
sb.AppendLine("============================================================");