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,23 +30,23 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
namespace Aaru.Decoders.SCSI;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class DiscStructureCapabilities
{
public static Capability[] Decode(byte[] response)
{
var len = (ushort)((response[0] << 8) + response[1]);
ushort len = (ushort)((response[0] << 8) + response[1]);
if(len + 2 != response.Length)
return null;
var caps = new List<Capability>();
List<Capability> caps = new();
uint offset = 4;