From 0312d5a812ef70583c6cd0440718b25707fff3fa Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 29 Sep 2023 18:27:26 +0100 Subject: [PATCH] Use UTF-8 string literals whenever possible. --- Structs/Devices/SCSI/Inquiry.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Structs/Devices/SCSI/Inquiry.cs b/Structs/Devices/SCSI/Inquiry.cs index bc7c89d..02039d2 100644 --- a/Structs/Devices/SCSI/Inquiry.cs +++ b/Structs/Devices/SCSI/Inquiry.cs @@ -246,10 +246,7 @@ public struct Inquiry public byte[] HiMDSpecific; #endregion Sony Hi-MD data - static readonly byte[] HiMDSignatureContents = - { - 0x48, 0x69, 0x2D, 0x4D, 0x44, 0x20, 0x20, 0x20 - }; + static readonly byte[] HiMDSignatureContents = "Hi-MD "u8.ToArray(); /// Decodes a SCSI INQUIRY response /// INQUIRY raw response data @@ -389,10 +386,7 @@ public struct Inquiry Array.Copy(SCSIInquiryResponse, 42, decoded.KreonVersion, 0, 5); if(decoded.KreonSpace == 0x20 && - decoded.KreonIdentifier.SequenceEqual(new byte[] - { - 0x4B, 0x52, 0x45, 0x4F, 0x4E - })) + decoded.KreonIdentifier.SequenceEqual("KREON"u8.ToArray())) decoded.KreonPresent = true; }