mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Property can be made read-only.
This commit is contained in:
@@ -47,12 +47,12 @@ namespace Aaru.Decoders.SCSI
|
||||
|
||||
public struct DecodedSense
|
||||
{
|
||||
public FixedSense? Fixed;
|
||||
public DescriptorSense? Descriptor;
|
||||
public byte ASC => Descriptor?.ASC ?? (Fixed?.ASC ?? 0);
|
||||
public byte ASCQ => Descriptor?.ASCQ ?? (Fixed?.ASCQ ?? 0);
|
||||
public SenseKeys SenseKey => Descriptor?.SenseKey ?? (Fixed?.SenseKey ?? SenseKeys.NoSense);
|
||||
public string Description => Sense.GetSenseDescription(ASC, ASCQ);
|
||||
public FixedSense? Fixed;
|
||||
public DescriptorSense? Descriptor;
|
||||
public readonly byte ASC => Descriptor?.ASC ?? (Fixed?.ASC ?? 0);
|
||||
public readonly byte ASCQ => Descriptor?.ASCQ ?? (Fixed?.ASCQ ?? 0);
|
||||
public readonly SenseKeys SenseKey => Descriptor?.SenseKey ?? (Fixed?.SenseKey ?? SenseKeys.NoSense);
|
||||
public readonly string Description => Sense.GetSenseDescription(ASC, ASCQ);
|
||||
}
|
||||
|
||||
[SuppressMessage("ReSharper", "MemberCanBeInternal"), SuppressMessage("ReSharper", "NotAccessedField.Global"),
|
||||
|
||||
Reference in New Issue
Block a user