mirror of
https://github.com/aaru-dps/Aaru.Decoders.git
synced 2025-12-16 19:24:32 +00:00
Use UTF-8 string literals whenever possible.
This commit is contained in:
@@ -2176,7 +2176,7 @@ public static class EVPD
|
|||||||
decoded.Copyright = Encoding.ASCII.GetBytes(str);
|
decoded.Copyright = Encoding.ASCII.GetBytes(str);
|
||||||
else if(fwMatch.Success)
|
else if(fwMatch.Success)
|
||||||
{
|
{
|
||||||
decoded.Component = Encoding.ASCII.GetBytes("Firmware");
|
decoded.Component = "Firmware"u8.ToArray();
|
||||||
decoded.Version = Encoding.ASCII.GetBytes(fwMatch.Groups["fw"].Value);
|
decoded.Version = Encoding.ASCII.GetBytes(fwMatch.Groups["fw"].Value);
|
||||||
decoded.Date = Encoding.ASCII.GetBytes(fwMatch.Groups["date"].Value);
|
decoded.Date = Encoding.ASCII.GetBytes(fwMatch.Groups["date"].Value);
|
||||||
}
|
}
|
||||||
@@ -2184,7 +2184,7 @@ public static class EVPD
|
|||||||
decoded.Variant = Encoding.ASCII.GetBytes(fwMatch.Groups["value"].Value);
|
decoded.Variant = Encoding.ASCII.GetBytes(fwMatch.Groups["value"].Value);
|
||||||
else if(servoMatch.Success)
|
else if(servoMatch.Success)
|
||||||
{
|
{
|
||||||
decoded.Component = Encoding.ASCII.GetBytes("Servo");
|
decoded.Component = "Servo"u8.ToArray();
|
||||||
decoded.Version = Encoding.ASCII.GetBytes(servoMatch.Groups["version"].Value);
|
decoded.Version = Encoding.ASCII.GetBytes(servoMatch.Groups["version"].Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2400,10 +2400,7 @@ public static class Inquiry
|
|||||||
if(response.HP_WORM)
|
if(response.HP_WORM)
|
||||||
sb.AppendFormat(Localization.Device_supports_WORM_version_0, response.HP_WORMVersion).AppendLine();
|
sb.AppendFormat(Localization.Device_supports_WORM_version_0, response.HP_WORMVersion).AppendLine();
|
||||||
|
|
||||||
byte[] OBDRSign =
|
byte[] OBDRSign = "$DR-10"u8.ToArray();
|
||||||
{
|
|
||||||
0x24, 0x44, 0x52, 0x2D, 0x31, 0x30
|
|
||||||
};
|
|
||||||
|
|
||||||
if(OBDRSign.SequenceEqual(response.HP_OBDR))
|
if(OBDRSign.SequenceEqual(response.HP_OBDR))
|
||||||
sb.AppendLine(Localization.Device_supports_Tape_Disaster_Recovery);
|
sb.AppendLine(Localization.Device_supports_Tape_Disaster_Recovery);
|
||||||
|
|||||||
@@ -41,11 +41,7 @@ namespace Aaru.Decoders.SCSI;
|
|||||||
public static partial class Modes
|
public static partial class Modes
|
||||||
{
|
{
|
||||||
#region Apple Mode Page 0x30: Apple OEM String
|
#region Apple Mode Page 0x30: Apple OEM String
|
||||||
static readonly byte[] AppleOEMString =
|
static readonly byte[] AppleOEMString = "APPLE COMPUTER, INC."u8.ToArray();
|
||||||
{
|
|
||||||
0x41, 0x50, 0x50, 0x4C, 0x45, 0x20, 0x43, 0x4F, 0x4D, 0x50, 0x55, 0x54, 0x45, 0x52, 0x2C, 0x20, 0x49, 0x4E,
|
|
||||||
0x43, 0x2E
|
|
||||||
};
|
|
||||||
|
|
||||||
public static bool IsAppleModePage_30(byte[] pageResponse)
|
public static bool IsAppleModePage_30(byte[] pageResponse)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user