Move to file scoped namespaces.

This commit is contained in:
2022-03-06 13:29:37 +00:00
parent c7178d94c6
commit 3b6091c02c
119 changed files with 38048 additions and 38172 deletions

View File

@@ -35,24 +35,24 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.CommonTypes.Structs.Devices.SCSI;
namespace Aaru.Decoders.ATA
{
// Information from following standards:
// T10-791D rev. 4c (ATA)
// T10-948D rev. 4c (ATA-2)
// T13-1153D rev. 18 (ATA/ATAPI-4)
// T13-1321D rev. 3 (ATA/ATAPI-5)
// T13-1410D rev. 3b (ATA/ATAPI-6)
// T13-1532D rev. 4b (ATA/ATAPI-7)
// T13-1699D rev. 3f (ATA8-ACS)
// T13-1699D rev. 4a (ATA8-ACS)
// T13-2015D rev. 2 (ACS-2)
// T13-2161D rev. 5 (ACS-3)
// CF+ & CF Specification rev. 1.4 (CFA)
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.ATA;
// Information from following standards:
// T10-791D rev. 4c (ATA)
// T10-948D rev. 4c (ATA-2)
// T13-1153D rev. 18 (ATA/ATAPI-4)
// T13-1321D rev. 3 (ATA/ATAPI-5)
// T13-1410D rev. 3b (ATA/ATAPI-6)
// T13-1532D rev. 4b (ATA/ATAPI-7)
// T13-1699D rev. 3f (ATA8-ACS)
// T13-1699D rev. 4a (ATA8-ACS)
// T13-2015D rev. 2 (ACS-2)
// T13-2161D rev. 5 (ACS-3)
// CF+ & CF Specification rev. 1.4 (CFA)
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Identify
{
public static class Identify
{
public static string Prettify(byte[] IdentifyDeviceResponse)
{
if(IdentifyDeviceResponse.Length != 512)
@@ -2239,5 +2239,4 @@ namespace Aaru.Decoders.ATA
#endif
return sb.ToString();
}
}
}

View File

@@ -32,11 +32,11 @@
using System.Runtime.InteropServices;
namespace Aaru.Decoders.ATA
namespace Aaru.Decoders.ATA;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaRegistersChs
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaRegistersChs
{
public byte Feature;
public byte SectorCount;
public byte Sector;
@@ -44,11 +44,11 @@ namespace Aaru.Decoders.ATA
public byte CylinderHigh;
public byte DeviceHead;
public byte Command;
}
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaRegistersLba28
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaRegistersLba28
{
public byte Feature;
public byte SectorCount;
public byte LbaLow;
@@ -56,11 +56,11 @@ namespace Aaru.Decoders.ATA
public byte LbaHigh;
public byte DeviceHead;
public byte Command;
}
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaRegistersLba48
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaRegistersLba48
{
public ushort Feature;
public ushort SectorCount;
public byte LbaLowPrevious;
@@ -71,11 +71,11 @@ namespace Aaru.Decoders.ATA
public byte LbaHighCurrent;
public byte DeviceHead;
public byte Command;
}
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaErrorRegistersChs
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaErrorRegistersChs
{
public byte Status;
public byte Error;
public byte SectorCount;
@@ -83,11 +83,11 @@ namespace Aaru.Decoders.ATA
public byte CylinderLow;
public byte CylinderHigh;
public byte DeviceHead;
}
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaErrorRegistersLba28
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaErrorRegistersLba28
{
public byte Status;
public byte Error;
public byte SectorCount;
@@ -95,11 +95,11 @@ namespace Aaru.Decoders.ATA
public byte LbaMid;
public byte LbaHigh;
public byte DeviceHead;
}
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaErrorRegistersLba48
{
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct AtaErrorRegistersLba48
{
public byte Status;
public byte Error;
public ushort SectorCount;
@@ -110,5 +110,4 @@ namespace Aaru.Decoders.ATA
public byte LbaHighPrevious;
public byte LbaHighCurrent;
public byte DeviceHead;
}
}

View File

@@ -36,25 +36,25 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.Bluray
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.Bluray;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class BCA
{
public static class BCA
{
#region Public structures
public struct BurstCuttingArea
{
@@ -120,5 +120,4 @@ namespace Aaru.Decoders.Bluray
public static string Prettify(byte[] BCAResponse) => Prettify(Decode(BCAResponse));
#endregion Public methods
}
}

View File

@@ -36,26 +36,26 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.Bluray
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.Bluray;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global"),
SuppressMessage("ReSharper", "UnassignedField.Global")]
public static class Cartridge
{
public static class Cartridge
{
#region Public structures
public struct CartridgeStatus
{
@@ -176,5 +176,4 @@ namespace Aaru.Decoders.Bluray
public static string Prettify(byte[] CSResponse) => Prettify(Decode(CSResponse));
#endregion Public methods
}
}

View File

@@ -36,25 +36,25 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.Bluray
{
/// Information from the following standards:
/// ANSI X3.304-1997
/// T10/1048-D revision 9.0
/// T10/1048-D revision 10a
/// T10/1228-D revision 7.0c
/// T10/1228-D revision 11a
/// T10/1363-D revision 10g
/// T10/1545-D revision 1d
/// T10/1545-D revision 5
/// T10/1545-D revision 5a
/// T10/1675-D revision 2c
/// T10/1675-D revision 4
/// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.Bluray;
/// Information from the following standards:
/// ANSI X3.304-1997
/// T10/1048-D revision 9.0
/// T10/1048-D revision 10a
/// T10/1228-D revision 7.0c
/// T10/1228-D revision 11a
/// T10/1363-D revision 10g
/// T10/1545-D revision 1d
/// T10/1545-D revision 5
/// T10/1545-D revision 5a
/// T10/1675-D revision 2c
/// T10/1675-D revision 4
/// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class DDS
{
public static class DDS
{
#region Private constants
/// <summary>Disc Definition Structure Identifier "DS"</summary>
const ushort DDSIdentifier = 0x4453;
@@ -225,5 +225,4 @@ namespace Aaru.Decoders.Bluray
public static string Prettify(byte[] DDSResponse) => Prettify(Decode(DDSResponse));
#endregion Public methods
}
}

View File

@@ -37,25 +37,25 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.Bluray
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.Bluray;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class DI
{
public static class DI
{
public enum BluSize : byte
{
/// <summary>120mm</summary>
@@ -576,5 +576,4 @@ namespace Aaru.Decoders.Bluray
public byte ProductRevisionNumber;
}
#endregion Public structures
}
}

View File

@@ -35,25 +35,25 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.Bluray
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.Bluray;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class Spare
{
public static class Spare
{
#region Public structures
public struct SpareAreaInformation
{
@@ -126,5 +126,4 @@ namespace Aaru.Decoders.Bluray
public static string Prettify(byte[] SAIResponse) => Prettify(Decode(SAIResponse));
#endregion Public methods
}
}

View File

@@ -36,25 +36,25 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.CD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.CD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class ATIP
{
public static class ATIP
{
public static CDATIP Decode(byte[] CDATIPResponse)
{
if(CDATIPResponse == null ||
@@ -675,5 +675,4 @@ namespace Aaru.Decoders.CD
/// <summary>Byte 5, bit 6 Unrestricted media</summary>
public bool URU;
}
}
}

View File

@@ -36,25 +36,25 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.CD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.CD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class CDTextOnLeadIn
{
public static class CDTextOnLeadIn
{
public enum PackTypeIndicator : byte
{
/// <summary>Title of the track (or album if track == 0)</summary>
@@ -373,5 +373,4 @@ namespace Aaru.Decoders.CD
/// <summary>Bytes 16 to 17 CRC16</summary>
public ushort CRC;
}
}
}

View File

@@ -32,11 +32,11 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.CD
namespace Aaru.Decoders.CD;
[SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum TocAdr : byte
{
[SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum TocAdr : byte
{
/// <summary>Q Sub-channel mode information not supplied</summary>
NoInformation = 0x00,
/// <summary>Q Sub-channel encodes current position data</summary>
@@ -49,10 +49,10 @@ namespace Aaru.Decoders.CD
TrackPointer = 0x01,
/// <summary>Q Sub-channel encodes the start of a video track (if found in TOC) for CD-V</summary>
VideoTrackPointer = 0x04
}
}
public enum TocControl : byte
{
public enum TocControl : byte
{
/// <summary>Stereo audio, no pre-emphasis</summary>
TwoChanNoPreEmph = 0x00,
/// <summary>Stereo audio with pre-emphasis</summary>
@@ -69,5 +69,4 @@ namespace Aaru.Decoders.CD
FourChanPreEmph = 0x09,
/// <summary>Reserved mask</summary>
ReservedMask = 0x0C
}
}

View File

@@ -39,27 +39,27 @@ using Aaru.CommonTypes.Structs;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.CD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ISO/IEC 61104: Compact disc video system - 12 cm CD-V
// ISO/IEC 60908: Audio recording - Compact disc digital audio system
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.CD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ISO/IEC 61104: Compact disc video system - 12 cm CD-V
// ISO/IEC 60908: Audio recording - Compact disc digital audio system
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class FullTOC
{
public static class FullTOC
{
const string StereoNoPre = "Stereo audio track with no pre-emphasis";
const string StereoPreEm = "Stereo audio track with 50/15 μs pre-emphasis";
const string QuadNoPreEm = "Quadraphonic audio track with no pre-emphasis";
@@ -782,5 +782,4 @@ namespace Aaru.Decoders.CD
static (byte minute, byte second, byte frame) LbaToMsf(ulong sector) =>
((byte)((sector + 150) / 75 / 60), (byte)((sector + 150) / 75 % 60), (byte)((sector + 150) % 75));
}
}

View File

@@ -35,25 +35,25 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.CD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.CD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class PMA
{
public static class PMA
{
public static CDPMA? Decode(byte[] CDPMAResponse)
{
if(CDPMAResponse == null ||
@@ -341,5 +341,4 @@ namespace Aaru.Decoders.CD
/// <summary>Byte 10</summary>
public byte PFRAME;
}
}
}

View File

@@ -37,12 +37,12 @@ using System.Runtime.CompilerServices;
using System.Text;
using Aaru.Checksums;
namespace Aaru.Decoders.CD
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.CD;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Sector
{
public static class Sector
{
public static readonly byte[] ScrambleTable =
{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x60, 0x00, 0x28,
@@ -472,5 +472,4 @@ namespace Aaru.Decoders.CD
return sb.ToString();
}
}
}

View File

@@ -29,10 +29,10 @@
using System;
using Aaru.CommonTypes.Enums;
namespace Aaru.Decoders.CD
namespace Aaru.Decoders.CD;
public class SectorBuilder
{
public class SectorBuilder
{
readonly byte[] _eccBTable;
readonly byte[] _eccFTable;
readonly uint[] _edcTable;
@@ -234,5 +234,4 @@ namespace Aaru.Decoders.CD
ecc[major + majorCount + eccOffset] = (byte)(eccA ^ eccB);
}
}
}
}

View File

@@ -35,24 +35,24 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.CD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4 T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.CD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4 T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Session
{
public static class Session
{
public static CDSessionInfo? Decode(byte[] CDSessionInfoResponse)
{
if(CDSessionInfoResponse == null ||
@@ -219,5 +219,4 @@ namespace Aaru.Decoders.CD
/// <summary>Bytes 4 to 7 First track number in last complete session start address in LBA or in MSF</summary>
public uint TrackStartAddress;
}
}
}

View File

@@ -29,10 +29,10 @@
using System;
using Aaru.Checksums;
namespace Aaru.Decoders.CD
namespace Aaru.Decoders.CD;
public static class Subchannel
{
public static class Subchannel
{
static readonly string[] _isrcTable =
{
// 0x00
@@ -590,5 +590,4 @@ namespace Aaru.Decoders.CD
return Interleave(sub);
}
}
}

View File

@@ -35,27 +35,27 @@ using System.Text;
using Aaru.Console;
using Aaru.Helpers;
namespace Aaru.Decoders.CD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ISO/IEC 61104: Compact disc video system - 12 cm CD-V
// ISO/IEC 60908: Audio recording - Compact disc digital audio system
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.CD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ISO/IEC 61104: Compact disc video system - 12 cm CD-V
// ISO/IEC 60908: Audio recording - Compact disc digital audio system
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class TOC
{
public static class TOC
{
public static CDTOC? Decode(byte[] CDTOCResponse)
{
if(CDTOCResponse == null ||
@@ -232,5 +232,4 @@ namespace Aaru.Decoders.CD
/// <summary>Bytes 4 to 7 The track start address in LBA or in MSF</summary>
public uint TrackStartAddress;
}
}
}

View File

@@ -32,26 +32,26 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class AACS
{
public static class AACS
{
public struct HDLeadInCopyright
{
/// <summary>Bytes 0 to 1 Data length</summary>
@@ -63,5 +63,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Bytes 4 to 2052 HD DVD Lead-In Copyright Information</summary>
public byte[] CopyrightInformation;
}
}
}

View File

@@ -32,26 +32,26 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class ADIP
{
public static class ADIP
{
public struct ADIPInformation
{
/// <summary>Bytes 0 to 1 Data length</summary>
@@ -63,5 +63,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Bytes 4 to 259 ADIP, defined in DVD standards</summary>
public byte[] ADIP;
}
}
}

View File

@@ -32,26 +32,26 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class BCA
{
public static class BCA
{
public struct BurstCuttingArea
{
/// <summary>Bytes 0 to 1 Data length</summary>
@@ -63,5 +63,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Bytes 4 to end Burst cutting area contents, 12 to 188 bytes</summary>
public byte[] BCA;
}
}
}

View File

@@ -32,26 +32,26 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class CPRM
{
public static class CPRM
{
public struct DiscMediaIdentifier
{
/// <summary>Bytes 0 to 1 Data length</summary>
@@ -75,5 +75,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Bytes 4 to end Disc Media Key Block for CPRM</summary>
public byte[] MediaKeyBlock;
}
}
}

View File

@@ -34,26 +34,26 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class CSS_CPRM
{
public static class CSS_CPRM
{
public static LeadInCopyright? DecodeLeadInCopyright(byte[] response)
{
if(response?.Length != 8)
@@ -348,5 +348,4 @@ namespace Aaru.Decoders.DVD
None = 0, Set = 1, LastChance = 2,
Perm = 3
}
}
}

View File

@@ -33,26 +33,26 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class Cartridge
{
public static class Cartridge
{
public static MediumStatus? Decode(byte[] response)
{
if(response?.Length != 8)
@@ -171,5 +171,4 @@ namespace Aaru.Decoders.DVD
/// </summary>
public byte RAMSWI;
}
}
}

View File

@@ -34,27 +34,27 @@ using System;
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 272: 120 mm DVD Rewritable Disk (DVD-RAM)
// ECMA 330: 120 mm (4,7 Gbytes per side) and 80 mm (1,46 Gbytes per side) DVD Rewritable Disk (DVD-RAM)
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 272: 120 mm DVD Rewritable Disk (DVD-RAM)
// ECMA 330: 120 mm (4,7 Gbytes per side) and 80 mm (1,46 Gbytes per side) DVD Rewritable Disk (DVD-RAM)
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class DDS
{
public static class DDS
{
public static DiscDefinitionStructure? Decode(byte[] response)
{
if(response?.Length != 2052)
@@ -247,5 +247,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Bit 0 Reserved</summary>
public bool Reserved2;
}
}
}

View File

@@ -32,26 +32,26 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class DMI
{
public static class DMI
{
public struct DiscManufacturingInformation
{
/// <summary>Bytes 0 to 1 Data length</summary>
@@ -63,5 +63,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Bytes 4 to 2052 Disc Manufacturing Information</summary>
public byte[] DMI;
}
}
}

View File

@@ -32,12 +32,12 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.DVD
namespace Aaru.Decoders.DVD;
#region Public enumerations
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DiskCategory : byte
{
#region Public enumerations
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DiskCategory : byte
{
/// <summary>DVD-ROM. Version 1 is ECMA-267 and ECMA-268.</summary>
DVDROM = 0,
/// <summary>DVD-RAM. Version 1 is ECMA-272. Version 6 is ECMA-330.</summary>
@@ -66,11 +66,11 @@ namespace Aaru.Decoders.DVD
DVDPRDL = 14,
/// <summary>According to standards this value is reserved. It's used by Nintendo GODs and WODs.</summary>
Nintendo = 15
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum MaximumRateField : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum MaximumRateField : byte
{
/// <summary>2.52 Mbps</summary>
TwoMbps = 0x00,
/// <summary>5.04 Mbps</summary>
@@ -81,18 +81,18 @@ namespace Aaru.Decoders.DVD
TwentyMbps = 0x03,
/// <summary>30.24 Mbps</summary>
ThirtyMbps = 0x04, Unspecified = 0x0F
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum LayerTypeFieldMask : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum LayerTypeFieldMask : byte
{
Embossed = 0x01, Recordable = 0x02, Rewritable = 0x04,
Reserved = 0x08
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum LinearDensityField : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum LinearDensityField : byte
{
/// <summary>0.267 μm/bit</summary>
TwoSix = 0x00,
/// <summary>0.293 μm/bit</summary>
@@ -107,11 +107,11 @@ namespace Aaru.Decoders.DVD
OneThree = 0x06,
/// <summary>0.353 μm/bit</summary>
ThreeFive = 0x08
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum TrackDensityField : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum TrackDensityField : byte
{
/// <summary>0.74 μm/track</summary>
Seven = 0x00,
/// <summary>0.80 μm/track</summary>
@@ -122,11 +122,11 @@ namespace Aaru.Decoders.DVD
Four = 0x03,
/// <summary>0.34 μm/track</summary>
Three = 0x04
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum CopyrightType : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum CopyrightType : byte
{
/// <summary>There is no copy protection</summary>
NoProtection = 0x00,
/// <summary>Copy protection is CSS/CPPM</summary>
@@ -135,48 +135,47 @@ namespace Aaru.Decoders.DVD
CPRM = 0x02,
/// <summary>Copy protection is AACS</summary>
AACS = 0x10
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum WPDiscTypes : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum WPDiscTypes : byte
{
/// <summary>Should not write without a cartridge</summary>
DoNotWrite = 0x00,
/// <summary>Can write without a cartridge</summary>
CanWrite = 0x01, Reserved1 = 0x02, Reserved2 = 0x03
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DVDSize
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DVDSize
{
/// <summary>120 mm</summary>
OneTwenty = 0,
/// <summary>80 mm</summary>
Eighty = 1
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DVDRAMDiscType
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DVDRAMDiscType
{
/// <summary>Shall not be recorded without a case</summary>
Cased = 0,
/// <summary>May be recorded without a case or within one</summary>
Uncased = 1
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DVDLayerStructure
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DVDLayerStructure
{
Unspecified = 0, InvertedStack = 1, TwoP = 2,
Reserved = 3
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DVDRecordingSpeed
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DVDRecordingSpeed
{
None = 0, Two = 0, Four = 0x10,
Six = 0x20, Eight = 0x30, Ten = 0x40,
Twelve = 0x50
}
#endregion
}
#endregion

View File

@@ -32,26 +32,26 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Layers
{
public static class Layers
{
public struct LayerCapacity
{
/// <summary>Bytes 0 to 1 Data length</summary>
@@ -135,5 +135,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Byte 8 to 11 LBA for the manual layer jump</summary>
public uint LBA;
}
}
}

View File

@@ -36,41 +36,41 @@ using System.Text;
using Aaru.CommonTypes;
using Aaru.Helpers;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 267: 120 mm DVD - Read-Only Disk
// ECMA 268: 80 mm DVD - Read-Only Disk
// ECMA 272: 120 mm DVD Rewritable Disk (DVD-RAM)
// ECMA 274: Data Interchange on 120 mm Optical Disk using +RW Format - Capacity: 3,0 Gbytes and 6,0 Gbytes
// ECMA 279: 80 mm (1,23 Gbytes per side) and 120 mm (3,95 Gbytes per side) DVD-Recordable Disk (DVD-R)
// ECMA 330: 120 mm (4,7 Gbytes per side) and 80 mm (1,46 Gbytes per side) DVD Rewritable Disk (DVD-RAM)
// ECMA 337: Data Interchange on 120 mm and 80 mm Optical Disk using +RW Format - Capacity: 4,7 and 1,46 Gbytes per Side
// ECMA 338: 80 mm (1,46 Gbytes per side) and 120 mm (4,70 Gbytes per side) DVD Re-recordable Disk (DVD-RW)
// ECMA 349: Data Interchange on 120 mm and 80 mm Optical Disk using +R Format - Capacity: 4,7 and 1,46 Gbytes per Side
// ECMA 359: 80 mm (1,46 Gbytes per side) and 120 mm (4,70 Gbytes per side) DVD Recordable Disk (DVD-R)
// ECMA 364: Data Interchange on 120 mm and 80 mm Optical Disk using +R DL Format - Capacity 8,55 and 2,66 Gbytes per Side
// ECMA 365: Data Interchange on 60 mm Read-Only ODC - Capacity: 1,8 Gbytes (UMD™)
// ECMA 371: Data Interchange on 120 mm and 80 mm Optical Disk using +RW HS Format - Capacity 4,7 and 1,46 Gbytes per side
// ECMA 374: Data Interchange on 120 mm and 80 mm Optical Disk using +RW DL Format - Capacity 8,55 and 2,66 Gbytes per side
// ECMA 382: 120 mm (8,54 Gbytes per side) and 80 mm (2,66 Gbytes per side) DVD Recordable Disk for Dual Layer (DVD-R for DL)
// ECMA 384: 120 mm (8,54 Gbytes per side) and 80 mm (2,66 Gbytes per side) DVD Re-recordable Disk for Dual Layer (DVD-RW for DL)
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 267: 120 mm DVD - Read-Only Disk
// ECMA 268: 80 mm DVD - Read-Only Disk
// ECMA 272: 120 mm DVD Rewritable Disk (DVD-RAM)
// ECMA 274: Data Interchange on 120 mm Optical Disk using +RW Format - Capacity: 3,0 Gbytes and 6,0 Gbytes
// ECMA 279: 80 mm (1,23 Gbytes per side) and 120 mm (3,95 Gbytes per side) DVD-Recordable Disk (DVD-R)
// ECMA 330: 120 mm (4,7 Gbytes per side) and 80 mm (1,46 Gbytes per side) DVD Rewritable Disk (DVD-RAM)
// ECMA 337: Data Interchange on 120 mm and 80 mm Optical Disk using +RW Format - Capacity: 4,7 and 1,46 Gbytes per Side
// ECMA 338: 80 mm (1,46 Gbytes per side) and 120 mm (4,70 Gbytes per side) DVD Re-recordable Disk (DVD-RW)
// ECMA 349: Data Interchange on 120 mm and 80 mm Optical Disk using +R Format - Capacity: 4,7 and 1,46 Gbytes per Side
// ECMA 359: 80 mm (1,46 Gbytes per side) and 120 mm (4,70 Gbytes per side) DVD Recordable Disk (DVD-R)
// ECMA 364: Data Interchange on 120 mm and 80 mm Optical Disk using +R DL Format - Capacity 8,55 and 2,66 Gbytes per Side
// ECMA 365: Data Interchange on 60 mm Read-Only ODC - Capacity: 1,8 Gbytes (UMD™)
// ECMA 371: Data Interchange on 120 mm and 80 mm Optical Disk using +RW HS Format - Capacity 4,7 and 1,46 Gbytes per side
// ECMA 374: Data Interchange on 120 mm and 80 mm Optical Disk using +RW DL Format - Capacity 8,55 and 2,66 Gbytes per side
// ECMA 382: 120 mm (8,54 Gbytes per side) and 80 mm (2,66 Gbytes per side) DVD Recordable Disk for Dual Layer (DVD-R for DL)
// ECMA 384: 120 mm (8,54 Gbytes per side) and 80 mm (2,66 Gbytes per side) DVD Re-recordable Disk for Dual Layer (DVD-RW for DL)
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class PFI
{
public static class PFI
{
public static PhysicalFormatInformation? Decode(byte[] response, MediaType mediaType)
{
if(response == null)
@@ -1559,5 +1559,4 @@ namespace Aaru.Decoders.DVD
public DiskCategory RecordedBookType;
}
}
}

View File

@@ -35,26 +35,26 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class PRI
{
public static class PRI
{
public static PreRecordedInformation? Decode(byte[] response)
{
if(response == null)
@@ -621,5 +621,4 @@ namespace Aaru.Decoders.DVD
public string ManufacturerId;
public uint WriteStrategyCode2;
}
}
}

View File

@@ -32,26 +32,26 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class RMD
{
public static class RMD
{
public struct LastBorderOutRMD
{
/// <summary>Bytes 0 to 1 Data length</summary>
@@ -81,5 +81,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Bytes 6 to 7 Number of remaining RMDs in current RMZ</summary>
public ushort CurrentRemainingRMDs;
}
}
}

View File

@@ -33,25 +33,25 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class Spare
{
public static class Spare
{
public static SpareAreaInformation? Decode(byte[] response)
{
if(response?.Length != 16)
@@ -105,5 +105,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Bytes 12 to 15 Data length</summary>
public uint AllocatedSupplementaryBlocks;
}
}
}

View File

@@ -32,26 +32,26 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.DVD
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.DVD;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
// ECMA 365
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class UDI
{
public static class UDI
{
public struct UniqueDiscIdentifier
{
/// <summary>Bytes 0 to 1 Data length</summary>
@@ -79,5 +79,4 @@ namespace Aaru.Decoders.DVD
/// <summary>Byte 20 to 21 Second</summary>
public ushort Second;
}
}
}

View File

@@ -33,13 +33,13 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace Aaru.Decoders.Floppy
{
/// <summary>Methods and structures for Commodore Amiga decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.Floppy;
/// <summary>Methods and structures for Commodore Amiga decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Amiga
{
public static class Amiga
{
public struct Sector
{
/// <summary>Set to 0x00</summary>
@@ -66,5 +66,4 @@ namespace Aaru.Decoders.Floppy
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)]
public byte[] data;
}
}
}

View File

@@ -38,13 +38,13 @@ using System.Linq;
using System.Runtime.InteropServices;
using Aaru.Console;
namespace Aaru.Decoders.Floppy
{
/// <summary>Methods and structures for Apple ][ floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.Floppy;
/// <summary>Methods and structures for Apple ][ floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Apple2
{
public static class Apple2
{
static readonly byte[] ReadTable5and3 =
{
// 00h
@@ -661,5 +661,4 @@ namespace Aaru.Decoders.Floppy
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
public byte[] prologue;
}
}
}

View File

@@ -37,16 +37,15 @@ using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
namespace Aaru.Decoders.Floppy
{
// Information from:
// Inside Macintosh, Volume II, ISBN 0-201-17732-3
namespace Aaru.Decoders.Floppy;
// Information from:
// Inside Macintosh, Volume II, ISBN 0-201-17732-3
/// <summary>Methods and structures for Apple Sony GCR floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>Methods and structures for Apple Sony GCR floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class AppleSony
{
public static class AppleSony
{
public static byte[] DecodeSector(RawSector sector)
{
if(sector.addressField.prologue[0] != 0xD5 ||
@@ -509,5 +508,4 @@ namespace Aaru.Decoders.Floppy
/// <summary>Spare, usually <see cref="RawAddressField.sector" /></summary>
public byte spare;
}
}
}

View File

@@ -33,13 +33,13 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace Aaru.Decoders.Floppy
{
/// <summary>Methods and structures for Commodore GCR floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.Floppy;
/// <summary>Methods and structures for Commodore GCR floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Commodore
{
public static class Commodore
{
/// <summary>Decoded Commodore GCR sector header</summary>
public struct SectorHeader
{
@@ -70,5 +70,4 @@ namespace Aaru.Decoders.Floppy
/// <summary>Filled with 0x0F</summary>
public ushort fill;
}
}
}

View File

@@ -32,12 +32,12 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.Floppy
namespace Aaru.Decoders.Floppy;
/// <summary>In-sector code for sector size</summary>
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum IBMSectorSizeCode : byte
{
/// <summary>In-sector code for sector size</summary>
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum IBMSectorSizeCode : byte
{
/// <summary>128 bytes/sector</summary>
EighthKilo = 0,
/// <summary>256 bytes/sector</summary>
@@ -54,18 +54,18 @@ namespace Aaru.Decoders.Floppy
TwiceFriceKilo = 6,
/// <summary>16384 bytes/sector</summary>
FricelyFriceKilo = 7
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum IBMIdType : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum IBMIdType : byte
{
IndexMark = 0xFC, AddressMark = 0xFE, DataMark = 0xFB,
DeletedDataMark = 0xF8
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum AppleEncodedFormat : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum AppleEncodedFormat : byte
{
/// <summary>Disk is an Apple II 3.5" disk</summary>
AppleII = 0x96,
/// <summary>Disk is an Apple Lisa 3.5" disk</summary>
@@ -74,5 +74,4 @@ namespace Aaru.Decoders.Floppy
MacSingleSide = 0x9A,
/// <summary>Disk is an Apple Macintosh double-sided 3.5" disk</summary>
MacDoubleSide = 0xD9
}
}

View File

@@ -33,23 +33,22 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace Aaru.Decoders.Floppy
{
// Information from:
// National Semiconductor PC87332VLJ datasheet
// SMsC FDC37C78 datasheet
// Intel 82078 datasheet
// Intel 82077AA datasheet
// Toshiba TC8566AF datasheet
// Fujitsu MB8876A datasheet
// ECMA-147
// ECMA-100
namespace Aaru.Decoders.Floppy;
// Information from:
// National Semiconductor PC87332VLJ datasheet
// SMsC FDC37C78 datasheet
// Intel 82078 datasheet
// Intel 82077AA datasheet
// Toshiba TC8566AF datasheet
// Fujitsu MB8876A datasheet
// ECMA-147
// ECMA-100
/// <summary>Methods and structures for ISO floppy decoding (also used by Atari ST and others)</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>Methods and structures for ISO floppy decoding (also used by Atari ST and others)</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class ISO
{
public static class ISO
{
/// <summary>ISO floppy track, also used by Atari ST and others</summary>
public struct Track
{
@@ -117,5 +116,4 @@ namespace Aaru.Decoders.Floppy
/// <summary>CRC16 from <see cref="aone" /> to end of <see cref="data" /></summary>
public ushort crc;
}
}
}

View File

@@ -33,23 +33,22 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace Aaru.Decoders.Floppy
{
// Information from:
// National Semiconductor PC87332VLJ datasheet
// SMsC FDC37C78 datasheet
// Intel 82078 datasheet
// Intel 82077AA datasheet
// Toshiba TC8566AF datasheet
// Fujitsu MB8876A datasheet
// ECMA-147
// ECMA-100
namespace Aaru.Decoders.Floppy;
// Information from:
// National Semiconductor PC87332VLJ datasheet
// SMsC FDC37C78 datasheet
// Intel 82078 datasheet
// Intel 82077AA datasheet
// Toshiba TC8566AF datasheet
// Fujitsu MB8876A datasheet
// ECMA-147
// ECMA-100
/// <summary>Methods and structures for perpendicular MFM floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>Methods and structures for perpendicular MFM floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Perpendicular
{
public static class Perpendicular
{
/// <summary>Perpendicular floppy track</summary>
public struct Track
{
@@ -135,5 +134,4 @@ namespace Aaru.Decoders.Floppy
/// <summary>CRC16 from <see cref="aone" /> to end of <see cref="data" /></summary>
public ushort crc;
}
}
}

View File

@@ -33,23 +33,22 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace Aaru.Decoders.Floppy
{
// Information from:
// National Semiconductor PC87332VLJ datasheet
// SMsC FDC37C78 datasheet
// Intel 82078 datasheet
// Intel 82077AA datasheet
// Toshiba TC8566AF datasheet
// Fujitsu MB8876A datasheet
// ECMA-147
// ECMA-100
namespace Aaru.Decoders.Floppy;
// Information from:
// National Semiconductor PC87332VLJ datasheet
// SMsC FDC37C78 datasheet
// Intel 82078 datasheet
// Intel 82077AA datasheet
// Toshiba TC8566AF datasheet
// Fujitsu MB8876A datasheet
// ECMA-147
// ECMA-100
/// <summary>Methods and structures for IBM System 34 floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>Methods and structures for IBM System 34 floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class System34
{
public static class System34
{
/// <summary>Track format for IBM System 34 floppy Used by IBM PC, Apple Macintosh (high-density only), and a lot others</summary>
public struct Track
{
@@ -135,5 +134,4 @@ namespace Aaru.Decoders.Floppy
/// <summary>CRC16 from <see cref="aone" /> to end of <see cref="data" /></summary>
public ushort crc;
}
}
}

View File

@@ -33,23 +33,22 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace Aaru.Decoders.Floppy
{
// Information from:
// National Semiconductor PC87332VLJ datasheet
// SMsC FDC37C78 datasheet
// Intel 82078 datasheet
// Intel 82077AA datasheet
// Toshiba TC8566AF datasheet
// Fujitsu MB8876A datasheet
// ECMA-147
// ECMA-100
namespace Aaru.Decoders.Floppy;
// Information from:
// National Semiconductor PC87332VLJ datasheet
// SMsC FDC37C78 datasheet
// Intel 82078 datasheet
// Intel 82077AA datasheet
// Toshiba TC8566AF datasheet
// Fujitsu MB8876A datasheet
// ECMA-147
// ECMA-100
/// <summary>Methods and structures for IBM System 3740 floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>Methods and structures for IBM System 3740 floppy decoding</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class System3740
{
public static class System3740
{
/// <summary>Track format for IBM System 3740 floppy</summary>
public struct Track
{
@@ -126,5 +125,4 @@ namespace Aaru.Decoders.Floppy
/// <summary>CRC16 from <see cref="type" /> to end of <see cref="data" /></summary>
public ushort crc;
}
}
}

View File

@@ -34,14 +34,14 @@ using System;
using System.Diagnostics.CodeAnalysis;
using Aaru.Helpers;
namespace Aaru.Decoders
{
/// <summary>Represents a Lisa Office 7/7 sector tag</summary>
[SuppressMessage("ReSharper", "MemberCanBeInternal"), SuppressMessage("ReSharper", "NotAccessedField.Global"),
namespace Aaru.Decoders;
/// <summary>Represents a Lisa Office 7/7 sector tag</summary>
[SuppressMessage("ReSharper", "MemberCanBeInternal"), SuppressMessage("ReSharper", "NotAccessedField.Global"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"),
SuppressMessage("ReSharper", "StructMemberCanBeMadeReadOnly")]
public static class LisaTag
{
public static class LisaTag
{
/// <summary>Decodes tag from a 3.5" Sony micro-floppy</summary>
/// <param name="tag">Byte array containing raw tag data</param>
/// <returns>Decoded tag in Sony's format</returns>
@@ -502,5 +502,4 @@ namespace Aaru.Decoders
return tagBytes;
}
}
}
}

View File

@@ -35,12 +35,12 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.MMC
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.MMC;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "UnassignedField.Global")]
public class CID
{
public class CID
{
public byte ApplicationID;
public byte CRC;
public byte DeviceType;
@@ -49,12 +49,12 @@ namespace Aaru.Decoders.MMC
public string ProductName;
public byte ProductRevision;
public uint ProductSerialNumber;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Decoders
{
public static partial class Decoders
{
public static CID DecodeCID(uint[] response)
{
if(response?.Length != 4)
@@ -210,5 +210,4 @@ namespace Aaru.Decoders.MMC
public static string PrettifyCID(uint[] response) => PrettifyCID(DecodeCID(response));
public static string PrettifyCID(byte[] response) => PrettifyCID(DecodeCID(response));
}
}

View File

@@ -34,12 +34,12 @@ using System;
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.MMC
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.MMC;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public class CSD
{
public class CSD
{
public ushort Classes;
public bool ContentProtection;
public bool Copy;
@@ -73,12 +73,12 @@ namespace Aaru.Decoders.MMC
public byte WriteProtectGroupSize;
public bool WritesPartialBlocks;
public byte WriteSpeedFactor;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Decoders
{
public static partial class Decoders
{
public static CSD DecodeCSD(uint[] response)
{
if(response?.Length != 4)
@@ -680,5 +680,4 @@ namespace Aaru.Decoders.MMC
public static string PrettifyCSD(uint[] response) => PrettifyCSD(DecodeCSD(response));
public static string PrettifyCSD(byte[] response) => PrettifyCSD(DecodeCSD(response));
}
}

View File

@@ -35,13 +35,13 @@ using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Text;
namespace Aaru.Decoders.MMC
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.MMC;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "UnassignedField.Global"),
StructLayout(LayoutKind.Sequential, Pack = 1)]
public class ExtendedCSD
{
public class ExtendedCSD
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 15)]
public byte[] Reserved0;
public byte CommandQueueModeEnable;
@@ -208,133 +208,133 @@ namespace Aaru.Decoders.MMC
public byte ExtendedSecurityCommandsError;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
public byte[] Reserved19;
}
}
[Flags]
public enum DeviceSupportedCommandSets : byte
{
[Flags]
public enum DeviceSupportedCommandSets : byte
{
Standard = 1 << 0
}
}
[Flags]
public enum HPIFeatures : byte
{
[Flags]
public enum HPIFeatures : byte
{
Supported = 1 << 0, CMD12 = 1 << 1
}
}
[Flags]
public enum BackgroundOperationsSupport : byte
{
[Flags]
public enum BackgroundOperationsSupport : byte
{
Supported = 1 << 0
}
}
[Flags]
public enum DataTagSupport : byte
{
[Flags]
public enum DataTagSupport : byte
{
Supported = 1 << 0
}
}
[Flags]
public enum ExtendedPartitionsSupport : byte
{
[Flags]
public enum ExtendedPartitionsSupport : byte
{
SystemCode = 1 << 0, NonPersistent = 1 << 1
}
}
[Flags]
public enum SupportedModes : byte
{
[Flags]
public enum SupportedModes : byte
{
FFU = 1 << 0, VendorSpecific = 1 << 1
}
}
[Flags]
public enum FFUFeatures : byte
{
[Flags]
public enum FFUFeatures : byte
{
SupportedModeOperationCodes = 1 << 0
}
}
[Flags]
public enum CMDQueuingSupport : byte
{
[Flags]
public enum CMDQueuingSupport : byte
{
Supported = 1 << 0
}
}
[Flags]
public enum CacheFlushingPolicy : byte
{
[Flags]
public enum CacheFlushingPolicy : byte
{
FIFO = 1 << 0
}
}
[Flags]
public enum SecureFeatureSupport : byte
{
[Flags]
public enum SecureFeatureSupport : byte
{
Purge = 1 << 0, Defective = 1 << 2, Trim = 1 << 4,
Sanitize = 1 << 6
}
}
[Flags]
public enum BootInformation : byte
{
[Flags]
public enum BootInformation : byte
{
Alternative = 1 << 0, DDR = 1 << 1, HighSpeed = 1 << 2
}
}
[Flags]
public enum SecureWriteProtectInformation : byte
{
[Flags]
public enum SecureWriteProtectInformation : byte
{
Supported = 1 << 0, Enabled = 1 << 1
}
}
[Flags]
public enum DriverStrength : byte
{
[Flags]
public enum DriverStrength : byte
{
Type0 = 1 << 0, Type1 = 1 << 1, Type2 = 1 << 2,
Type3 = 1 << 3, Type4 = 1 << 4
}
}
[Flags]
public enum DeviceType : byte
{
[Flags]
public enum DeviceType : byte
{
HS_26 = 1 << 0, HS_52 = 1 << 1, HS_DDR_52 = 1 << 2,
HS_DDR_52_LV = 1 << 3, HS200_18 = 1 << 4, HS200_12 = 1 << 5,
HS400_18 = 1 << 6, HS400_12 = 1 << 7
}
}
[Flags]
public enum BootConfigProtection : byte
{
[Flags]
public enum BootConfigProtection : byte
{
PowerCycle = 1 << 0, Permanent = 1 << 4
}
}
[Flags]
public enum HighCapacityEraseGroupDefinition : byte
{
[Flags]
public enum HighCapacityEraseGroupDefinition : byte
{
Enabled = 1 << 0
}
}
[Flags]
public enum BootAreaWriteProtectionRegister : byte
{
[Flags]
public enum BootAreaWriteProtectionRegister : byte
{
PowerOn = 1 << 0, PowerOnArea2 = 1 << 1, Permanent = 1 << 2,
PermanentArea2 = 1 << 3, PermanentDisable = 1 << 4, PowerOnDisable = 1 << 6,
Selected = 1 << 7
}
}
[Flags]
public enum UserAreaWriteProtectionRegister : byte
{
[Flags]
public enum UserAreaWriteProtectionRegister : byte
{
ApplyPowerOn = 1 << 0, ApplyPermanent = 1 << 2, DisablePowerOn = 1 << 3,
DisablePermanent = 1 << 4, DisableWriteProtect = 1 << 6, DisablePassword = 1 << 7
}
}
[Flags]
public enum PartitioningSupport : byte
{
[Flags]
public enum PartitioningSupport : byte
{
Supported = 1 << 0, Enhanced = 1 << 1, Extended = 1 << 2
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Decoders
{
public static partial class Decoders
{
public static ExtendedCSD DecodeExtendedCSD(byte[] response)
{
if(response?.Length != 512)
@@ -1224,5 +1224,4 @@ namespace Aaru.Decoders.MMC
}
public static string PrettifyExtendedCSD(byte[] response) => PrettifyExtendedCSD(DecodeExtendedCSD(response));
}
}

View File

@@ -35,12 +35,12 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.MMC
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.MMC;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public class OCR
{
public class OCR
{
public byte AccessMode;
public bool OneSix;
public bool PowerUp;
@@ -60,12 +60,12 @@ namespace Aaru.Decoders.MMC
public bool TwoThree;
public bool TwoTwo;
public bool TwoZero;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Decoders
{
public static partial class Decoders
{
public static OCR DecodeOCR(uint response)
{
response = Swapping.Swap(response);
@@ -178,5 +178,4 @@ namespace Aaru.Decoders.MMC
public static string PrettifyOCR(byte[] response) => PrettifyOCR(DecodeOCR(response));
public static string PrettifyOCR(uint response) => PrettifyOCR(DecodeOCR(response));
}
}

View File

@@ -30,11 +30,11 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
namespace Aaru.Decoders.MMC
namespace Aaru.Decoders.MMC;
/// <summary>Decodes MultiMediaCard vendors</summary>
public static class VendorString
{
/// <summary>Decodes MultiMediaCard vendors</summary>
public static class VendorString
{
/// <summary>Converts the byte value of a MultiMediaCard vendor ID to the manufacturer's name string</summary>
/// <param name="mmcVendorId">MMC vendor ID</param>
/// <returns>Manufacturer</returns>
@@ -45,5 +45,4 @@ namespace Aaru.Decoders.MMC
0x2C => "extreMEmory",
_ => $"Unknown manufacturer ID 0x{mmcVendorId:X2}"
};
}
}

View File

@@ -37,12 +37,12 @@ using System.Linq;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.PCMCIA
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.PCMCIA;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class CIS
{
public static class CIS
{
// TODO: Handle links? Or are they removed in lower layers of the operating system drivers?
public static Tuple[] GetTuples(byte[] data)
{
@@ -314,5 +314,4 @@ namespace Aaru.Decoders.PCMCIA
public static string PrettifyLevel1VersionTuple(byte[] data) =>
PrettifyLevel1VersionTuple(DecodeLevel1VersionTuple(data));
}
}

View File

@@ -32,12 +32,12 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.PCMCIA
namespace Aaru.Decoders.PCMCIA;
/// <summary>Tuple codes.</summary>
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum TupleCodes : byte
{
/// <summary>Tuple codes.</summary>
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum TupleCodes : byte
{
/// <summary>Checksum control</summary>
CISTPL_CHECKSUM = 0x10,
/// <summary>End-of-chain</summary>
@@ -118,11 +118,11 @@ namespace Aaru.Decoders.PCMCIA
CISTPL_ORG = 0x46,
/// <summary>Special purpose</summary>
CISTPL_SPCL = 0x90
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DeviceTypeCodes : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DeviceTypeCodes : byte
{
/// <summary>No device, used to designate a hole</summary>
DTYPE_NULL = 0,
/// <summary>Masked ROM</summary>
@@ -143,11 +143,11 @@ namespace Aaru.Decoders.PCMCIA
DTYPE_FUNCSPEC = 13,
/// <summary>Extended type follows</summary>
DTYPE_EXTEND = 14
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DeviceSpeedCodes : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum DeviceSpeedCodes : byte
{
/// <summary>No device</summary>
DSPEED_NULL = 0,
/// <summary>250 ns</summary>
@@ -160,15 +160,14 @@ namespace Aaru.Decoders.PCMCIA
DSPEED_100NS = 4,
/// <summary>Extended speed follows</summary>
DSPEED_EXT = 7
}
}
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum FunctionCodes : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
public enum FunctionCodes : byte
{
MultiFunction = 0x00, Memory = 0x01, Serial = 0x02,
Parallel = 0x03, FixedDisk = 0x04, Video = 0x05,
Network = 0x06, AIMS = 0x07, SCSI = 0x08,
Security = 0x09, Instrument = 0x0A, HighSpeedSerial = 0x0B,
VendorSpecific = 0xFE
}
}

View File

@@ -32,23 +32,23 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.PCMCIA
{
/// <summary>Basic classure of a PCMCIA tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.PCMCIA;
/// <summary>Basic classure of a PCMCIA tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class Tuple
{
public class Tuple
{
public TupleCodes Code;
public byte[] Data;
public byte Link;
}
}
/// <summary>Checksum tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>Checksum tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class ChecksumTuple
{
public class ChecksumTuple
{
/// <summary>Modulo-256 sum of region</summary>
public byte Checksum;
/// <summary>
@@ -61,26 +61,26 @@ namespace Aaru.Decoders.PCMCIA
public byte Link;
/// <summary>Offset to region to be checksummed</summary>
public short Offset;
}
}
/// <summary>Indirect Access PC Card Memory</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>Indirect Access PC Card Memory</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class IndirectTuple
{
public class IndirectTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_INDIRECT" />
/// </summary>
public TupleCodes Code;
/// <summary>Link to next tuple</summary>
public byte Link;
}
}
/// <summary>Link target tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>Link target tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class LinkTargetTuple
{
public class LinkTargetTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_LINKTARGET" />
/// </summary>
@@ -89,13 +89,13 @@ namespace Aaru.Decoders.PCMCIA
public byte Link;
/// <summary>'C''I''S' in ASCII</summary>
public byte[] Tag;
}
}
/// <summary>16-bit PC Card Long Link Tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>16-bit PC Card Long Link Tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class LongLinkTuple
{
public class LongLinkTuple
{
/// <summary>Target address</summary>
public uint Address;
/// <summary>
@@ -105,24 +105,24 @@ namespace Aaru.Decoders.PCMCIA
public TupleCodes Code;
/// <summary>Link to next tuple</summary>
public byte Link;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"),
SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
public class ConfigurationAddress
{
public class ConfigurationAddress
{
/// <summary>Target address</summary>
public uint Address;
/// <summary>Target address space, 0 = attribute, 1 = common</summary>
public byte TargetAddressSpace;
}
}
/// <summary>Multiple function link tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
/// <summary>Multiple function link tuple</summary>
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class MultipleFunctionLinkTuple
{
public class MultipleFunctionLinkTuple
{
/// <summary>Link to more configuration registers</summary>
public ConfigurationAddress[] Addresses;
/// <summary>
@@ -133,24 +133,24 @@ namespace Aaru.Decoders.PCMCIA
public byte Link;
/// <summary>How many functions follow</summary>
public byte NumberFunctions;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class NoLinkTuple
{
public class NoLinkTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_NO_LINK" />
/// </summary>
public TupleCodes Code;
/// <summary>Link to next tuple</summary>
public byte Link;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class AlternateStringTuple
{
public class AlternateStringTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_ALTSTR" />
/// </summary>
@@ -162,25 +162,25 @@ namespace Aaru.Decoders.PCMCIA
/// Unicode, so no need for it.
/// </summary>
public string[] Strings;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"),
SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
public class ExtendedDeviceSpeed
{
public class ExtendedDeviceSpeed
{
/// <summary>Speed exponent</summary>
public byte Exponent;
/// <summary>Another extended follows</summary>
public bool Extended;
/// <summary>Speed mantisa</summary>
public byte Mantissa;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public struct DeviceInfo
{
public struct DeviceInfo
{
/// <summary>Device type code</summary>
public DeviceTypeCodes Type;
/// <summary>Write protected</summary>
@@ -195,36 +195,36 @@ namespace Aaru.Decoders.PCMCIA
public byte Units;
/// <summary>Code to define units unit</summary>
public byte SizeCode;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class DeviceTuple
{
public class DeviceTuple
{
/// <summary><see cref="TupleCodes.CISTPL_DEVICE" /> or <see cref="TupleCodes.CISTPL_DEVICE_A" /></summary>
public TupleCodes Code;
/// <summary>Array of device information bytes</summary>
public DeviceInfo[] Infos;
/// <summary>Link to next tuple</summary>
public byte Link;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public struct OtherConditionInfo
{
public struct OtherConditionInfo
{
/// <summary>True if another other condition info follows</summary>
public bool Extended;
/// <summary>Vcc used</summary>
public byte VccUsed;
/// <summary>Supports WAIT# signal</summary>
public bool MWAIT;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class OtherConditionTuple
{
public class OtherConditionTuple
{
/// <summary><see cref="TupleCodes.CISTPL_DEVICE_OC" /> or <see cref="TupleCodes.CISTPL_DEVICE_OA" /></summary>
public TupleCodes Code;
/// <summary>Array of device information bytes</summary>
@@ -233,12 +233,12 @@ namespace Aaru.Decoders.PCMCIA
public byte Link;
/// <summary>Array of other condition information bytes</summary>
public OtherConditionInfo[] OtherConditionInfos;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public struct DeviceGeometry
{
public struct DeviceGeometry
{
/// <summary>1 &lt;&lt; n-1 bytes, 2 = 16-bit PC Card, 3 = CardBus PC Card</summary>
public byte CardInterface;
/// <summary>
@@ -263,24 +263,24 @@ namespace Aaru.Decoders.PCMCIA
public byte Partitions;
/// <summary>Card employs a multiple of 1 &lt;&lt; n-1 times interleaving the entire memory arrays</summary>
public byte Interleaving;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public class DeviceGeometryTuple
{
public class DeviceGeometryTuple
{
/// <summary><see cref="TupleCodes.CISTPL_DEVICEGEO" /> or <see cref="TupleCodes.CISTPL_DEVICEGEO_A" /></summary>
public TupleCodes Code;
/// <summary>Array of device geometries</summary>
public DeviceGeometry[] Geometries;
/// <summary>Link to next tuple</summary>
public byte Link;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class FunctionIdentificationTuple
{
public class FunctionIdentificationTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_FUNCID" />
/// </summary>
@@ -293,12 +293,12 @@ namespace Aaru.Decoders.PCMCIA
public bool POST;
/// <summary>Device contains boot ROM</summary>
public bool ROM;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public class ManufacturerIdentificationTuple
{
public class ManufacturerIdentificationTuple
{
/// <summary>Card ID</summary>
public ushort CardID;
/// <summary>
@@ -309,12 +309,12 @@ namespace Aaru.Decoders.PCMCIA
public byte Link;
/// <summary>Manufacturer ID</summary>
public ushort ManufacturerID;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public class Level1VersionTuple
{
public class Level1VersionTuple
{
/// <summary>Additional information strings</summary>
public string[] AdditionalInformation;
/// <summary>
@@ -331,12 +331,12 @@ namespace Aaru.Decoders.PCMCIA
public byte MinorVersion;
/// <summary>Product string</summary>
public string Product;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class Level2VersionTuple
{
public class Level2VersionTuple
{
/// <summary>Address of first data byte</summary>
public ushort Address;
/// <summary>Number of copies of CIS present</summary>
@@ -359,12 +359,12 @@ namespace Aaru.Decoders.PCMCIA
public byte VendorSpecific1;
/// <summary>Vendor-specific byte</summary>
public byte VendorSpecific2;
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public class GeometryTuple
{
public class GeometryTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_GEOMETRY" />
/// </summary>
@@ -377,5 +377,4 @@ namespace Aaru.Decoders.PCMCIA
public byte SectorsPerTrack;
/// <summary>Tracks per cylinder</summary>
public byte TracksPerCylinder;
}
}

View File

@@ -32,11 +32,11 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.PCMCIA
namespace Aaru.Decoders.PCMCIA;
[SuppressMessage("ReSharper", "MemberCanBeInternal")]
public static class VendorCode
{
[SuppressMessage("ReSharper", "MemberCanBeInternal")]
public static class VendorCode
{
public static string Prettify(ushort id)
{
switch(id)
@@ -359,5 +359,4 @@ namespace Aaru.Decoders.PCMCIA
default: return $"Unknown vendor id 0x{id:X4}";
}
}
}
}

View File

@@ -33,12 +33,12 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class DiscStructureCapabilities
{
public static class DiscStructureCapabilities
{
public static Capability[] Decode(byte[] response)
{
ushort len = (ushort)((response[0] << 8) + response[1]);
@@ -75,5 +75,4 @@ namespace Aaru.Decoders.SCSI
/// <summary>Supported in READ DISC STRUCTURE</summary>
public bool RDS;
}
}
}

View File

@@ -40,13 +40,13 @@ using Aaru.CommonTypes.Structs.Devices.ATA;
using Aaru.CommonTypes.Structs.Devices.SCSI;
using Aaru.Helpers;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global"),
SuppressMessage("ReSharper", "UnassignedField.Global")]
public static class EVPD
{
public static class EVPD
{
/// <summary>Decodes VPD page 0x00: Supported VPD pages</summary>
/// <returns>A byte array containing all supported VPD pages.</returns>
/// <param name="page">Page 0x00.</param>
@@ -2372,5 +2372,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion EVPD Page 0xC0 (Seagate): Firmware numbers page
}
}

View File

@@ -37,21 +37,21 @@ 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
// T10/1236-D revision 20
// T10/1416-D revision 23
// T10/1731-D revision 16
// T10/502 revision 05
// RFC 7144
// ECMA-111
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
// Information from the following standards:
// T9/375-D revision 10l
// T10/995-D revision 10
// T10/1236-D revision 20
// T10/1416-D revision 23
// T10/1731-D revision 16
// T10/502 revision 05
// RFC 7144
// ECMA-111
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static class Inquiry
{
public static class Inquiry
{
public static string Prettify(CommonTypes.Structs.Devices.SCSI.Inquiry? SCSIInquiryResponse)
{
if(SCSIInquiryResponse == null)
@@ -2486,5 +2486,4 @@ namespace Aaru.Decoders.SCSI
return Prettify(decoded);
}
}
}

View File

@@ -35,25 +35,25 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.SCSI.MMC
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI.MMC;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class AACS
{
public static class AACS
{
public static AACSVolumeIdentifier? DecodeAACSVolumeIdentifier(byte[] AACSVIResponse)
{
if(AACSVIResponse == null)
@@ -425,5 +425,4 @@ namespace Aaru.Decoders.SCSI.MMC
/// <summary>Bytes 12 to 15 Extent length</summary>
public uint LBACount;
}
}
}

View File

@@ -35,25 +35,25 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.SCSI.MMC
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI.MMC;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class CPRM
{
public static class CPRM
{
public static CPRMMediaKeyBlock? DecodeCPRMMediaKeyBlock(byte[] CPRMMKBResponse)
{
if(CPRMMKBResponse == null)
@@ -112,5 +112,4 @@ namespace Aaru.Decoders.SCSI.MMC
/// <summary>Byte 4 MKB Packs</summary>
public byte[] MKBPackData;
}
}
}

View File

@@ -34,25 +34,25 @@ using System;
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI.MMC
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI.MMC;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class DiscInformation
{
public static class DiscInformation
{
public static StandardDiscInformation? Decode000b(byte[] response)
{
if(response.Length < 32)
@@ -462,5 +462,4 @@ namespace Aaru.Decoders.SCSI.MMC
/// <summary>Bytes 12 to 15 Number of remaining POW updates</summary>
public uint RemainingPOWUpdates;
}
}
}

View File

@@ -32,46 +32,45 @@
using System.Diagnostics.CodeAnalysis;
namespace Aaru.Decoders.SCSI.MMC
namespace Aaru.Decoders.SCSI.MMC;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum FormatLayerTypeCodes : ushort
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum FormatLayerTypeCodes : ushort
{
CDLayer = 0x0008, DVDLayer = 0x0010, BDLayer = 0x0040,
HDDVDLayer = 0x0050
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum SessionStatusCodes : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum SessionStatusCodes : byte
{
Empty = 0x00, Incomplete = 0x01, ReservedOrDamaged = 0x02,
Complete = 0x03
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum DiscStatusCodes : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum DiscStatusCodes : byte
{
Empty = 0x00, Incomplete = 0x01, Finalized = 0x02,
Others = 0x03
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum BGFormatStatusCodes : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum BGFormatStatusCodes : byte
{
NoFormattable = 0x00, IncompleteBackgroundFormat = 0x01, BackgroundFormatInProgress = 0x02,
FormatComplete = 0x03
}
}
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum DiscTypeCodes : byte
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal")]
public enum DiscTypeCodes : byte
{
/// <summary>Also valid for CD-DA, DVD and BD</summary>
CDROM = 0x00, CDi = 0x10, CDROMXA = 0x20, Undefined = 0xFF
}
}
public enum LayerJumpRecordingStatus : byte
{
public enum LayerJumpRecordingStatus : byte
{
Incremental = 0, Unspecified = 1, Manual = 2,
RegularInterval = 3
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -34,25 +34,25 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.SCSI.MMC
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI.MMC;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class Hybrid
{
public static class Hybrid
{
public static RecognizedFormatLayers? DecodeFormatLayers(byte[] FormatLayersResponse)
{
if(FormatLayersResponse == null)
@@ -192,5 +192,4 @@ namespace Aaru.Decoders.SCSI.MMC
/// <summary>Bytes 6 to end Recognized format layers</summary>
public ushort[] FormatLayers;
}
}
}

View File

@@ -26,10 +26,10 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
namespace Aaru.Decoders.SCSI.MMC
namespace Aaru.Decoders.SCSI.MMC;
public class TrackInformation
{
public class TrackInformation
{
public bool Blank;
public bool Copy;
public bool Damage;
@@ -106,5 +106,4 @@ namespace Aaru.Decoders.SCSI.MMC
return decoded;
}
}
}

View File

@@ -35,25 +35,25 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.SCSI.MMC
{
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI.MMC;
// Information from the following standards:
// ANSI X3.304-1997
// T10/1048-D revision 9.0
// T10/1048-D revision 10a
// T10/1228-D revision 7.0c
// T10/1228-D revision 11a
// T10/1363-D revision 10g
// T10/1545-D revision 1d
// T10/1545-D revision 5
// T10/1545-D revision 5a
// T10/1675-D revision 2c
// T10/1675-D revision 4
// T10/1836-D revision 2g
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static class WriteProtect
{
public static class WriteProtect
{
public static WriteProtectionStatus? DecodeWriteProtectionStatus(byte[] WPSResponse)
{
if(WPSResponse == null)
@@ -153,5 +153,4 @@ namespace Aaru.Decoders.SCSI.MMC
/// <summary>Byte 7 Reserved</summary>
public byte Reserved6;
}
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x00: Drive Operation Mode page
/// <summary>Drive Operation Mode page Page code 0x00 4 bytes in INF-8070</summary>
public struct ModePage_00_SFF
@@ -113,5 +113,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x00: Drive Operation Mode page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
public static byte[] EncodeModePage_01(ModePage_01 page)
{
byte[] pg = new byte[8];
@@ -225,5 +225,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x01: Read-write error recovery page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
public static byte[] EncodeModePage_01_MMC(ModePage_01_MMC page)
{
byte[] pg = new byte[12];
@@ -230,5 +230,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x01: Read error recovery page for MultiMedia Devices
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x02: Disconnect-reconnect page
/// <summary>Disconnect-reconnect page Page code 0x02 16 bytes in SCSI-2, SPC-1, SPC-2, SPC-3, SPC-4, SPC-5</summary>
public struct ModePage_02
@@ -186,5 +186,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x02: Disconnect-reconnect page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x03: Format device page
/// <summary>Disconnect-reconnect page Page code 0x03 24 bytes in SCSI-2, SBC-1</summary>
public struct ModePage_03
@@ -165,5 +165,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x03: Format device page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x04: Rigid disk drive geometry page
/// <summary>Disconnect-reconnect page Page code 0x04 24 bytes in SCSI-2, SBC-1</summary>
public struct ModePage_04
@@ -158,5 +158,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x04: Rigid disk drive geometry page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x05: Flexible disk page
/// <summary>Disconnect-reconnect page Page code 0x05 32 bytes in SCSI-2, SBC-1</summary>
public struct ModePage_05
@@ -309,5 +309,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x05: Flexible disk page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x06: Optical memory page
/// <summary>Optical memory page Page code 0x06 4 bytes in SCSI-2</summary>
public struct ModePage_06
@@ -93,5 +93,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x06: Optical memory page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x07: Verify error recovery page
/// <summary>Disconnect-reconnect page Page code 0x07 12 bytes in SCSI-2, SBC-1, SBC-2</summary>
public struct ModePage_07
@@ -128,5 +128,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x07: Verify error recovery page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x07: Verify error recovery page for MultiMedia Devices
/// <summary>Verify error recovery page for MultiMedia Devices Page code 0x07 8 bytes in SCSI-2, MMC-1</summary>
public struct ModePage_07_MMC
@@ -188,5 +188,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x07: Verify error recovery page for MultiMedia Devices
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x08: Caching page
/// <summary>Disconnect-reconnect page Page code 0x08 12 bytes in SCSI-2 20 bytes in SBC-1, SBC-2, SBC-3</summary>
public struct ModePage_08
@@ -275,5 +275,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x08: Caching page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x0A: Control mode page
/// <summary>Control mode page Page code 0x0A 8 bytes in SCSI-2 12 bytes in SPC-1, SPC-2, SPC-3, SPC-4, SPC-5</summary>
public struct ModePage_0A
@@ -443,5 +443,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x0A subpage 0x01: Control Extension mode page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x0B: Medium types supported page
/// <summary>Disconnect-reconnect page Page code 0x0B 8 bytes in SCSI-2</summary>
public struct ModePage_0B
@@ -111,5 +111,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x0B: Medium types supported page
}
}

View File

@@ -30,12 +30,11 @@
// Copyright © 2011-2022 Natalia Portillo
// ****************************************************************************/
namespace Aaru.Decoders.SCSI
namespace Aaru.Decoders.SCSI;
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x0C: Notch page
// TODO: Implement this page
#endregion Mode Page 0x0C: Notch page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x0D: CD-ROM parameteres page
/// <summary>CD-ROM parameteres page Page code 0x0D 8 bytes in SCSI-2, MMC-1, MMC-2, MMC-3</summary>
public struct ModePage_0D
@@ -170,5 +170,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x0D: CD-ROM parameteres page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x0E: CD-ROM audio control parameters page
/// <summary>CD-ROM audio control parameters Page code 0x0E 16 bytes in SCSI-2, MMC-1, MMC-2, MMC-3</summary>
public struct ModePage_0E
@@ -276,5 +276,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x0E: CD-ROM audio control parameters page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x0F: Data compression page
/// <summary>Data compression page Page code 0x0F 16 bytes in SSC-1, SSC-2, SSC-3</summary>
public struct ModePage_0F
@@ -200,5 +200,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x0F: Data compression page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x10: XOR control mode page
/// <summary>XOR control mode page Page code 0x10 24 bytes in SBC-1, SBC-2</summary>
public struct ModePage_10
@@ -131,5 +131,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x10: XOR control mode page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x10: Device configuration page
/// <summary>Device configuration page Page code 0x10 16 bytes in SCSI-2, SSC-1, SSC-2, SSC-3</summary>
public struct ModePage_10_SSC
@@ -327,5 +327,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x10: Device configuration page
}
}

View File

@@ -34,12 +34,12 @@ using System;
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x11: Medium partition page (1)
public enum PartitionSizeUnitOfMeasures : byte
{
@@ -246,5 +246,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x11: Medium partition page (1)
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Pages 0x12, 0x13, 0x14: Medium partition page (2-4)
/// <summary>Medium partition page (2-4) Page codes 0x12, 0x13 and 0x14</summary>
public struct ModePage_12_13_14
@@ -107,5 +107,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Pages 0x12, 0x13, 0x14: Medium partition page (2-4)
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x1A: Power condition page
/// <summary>Power condition page Page code 0x1A 12 bytes in SPC-1, SPC-2, SPC-3, SPC-4 40 bytes in SPC-5</summary>
public struct ModePage_1A
@@ -268,5 +268,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x1A subpage 0x01: Power Consumption mode page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x1B: Removable Block Access Capabilities page
/// <summary>Removable Block Access Capabilities page Page code 0x1B 12 bytes in INF-8070</summary>
public struct ModePage_1B
@@ -118,5 +118,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x1B: Removable Block Access Capabilities page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x1C: Informational exceptions control page
/// <summary>Informational exceptions control page Page code 0x1C 12 bytes in SPC-1, SPC-2, SPC-3, SPC-4</summary>
public struct ModePage_1C
@@ -306,5 +306,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x1C subpage 0x01: Background Control mode page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x1C: Timer & Protect page
/// <summary>Timer &amp; Protect page Page code 0x1C 8 bytes in INF-8070</summary>
public struct ModePage_1C_SFF
@@ -171,5 +171,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x1C: Timer & Protect page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x1D: Medium Configuration Mode Page
public struct ModePage_1D
{
@@ -133,5 +133,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x1D: Medium Configuration Mode Page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Certance Mode Page 0x21: Drive Capabilities Control Mode page
public struct Certance_ModePage_21
{
@@ -201,5 +201,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Certance Mode Page 0x21: Drive Capabilities Control Mode page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Certance Mode Page 0x22: Interface Control Mode Page
public struct Certance_ModePage_22
{
@@ -186,5 +186,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Certance Mode Page 0x22: Interface Control Mode Page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region IBM Mode Page 0x24: Drive Capabilities Control Mode page
public struct IBM_ModePage_24
{
@@ -105,5 +105,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion IBM Mode Page 0x24: Drive Capabilities Control Mode page
}
}

View File

@@ -35,12 +35,12 @@ using System.Linq;
using System.Text;
using Aaru.CommonTypes.Structs.Devices.SCSI.Modes;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Mode Page 0x2A: CD-ROM capabilities page
public static string PrettifyModePage_2A(byte[] pageResponse) =>
PrettifyModePage_2A(ModePage_2A.Decode(pageResponse));
@@ -239,5 +239,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x2A: CD-ROM capabilities page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "UnassignedField.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region IBM Mode Page 0x2F: Behaviour Configuration Mode page
public struct IBM_ModePage_2F
{
@@ -191,5 +191,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion IBM Mode Page 0x2F: Behaviour Configuration Mode page
}
}

View File

@@ -34,12 +34,12 @@ using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Apple Mode Page 0x30: Apple OEM String
static readonly byte[] AppleOEMString =
{
@@ -67,5 +67,4 @@ namespace Aaru.Decoders.SCSI
return AppleOEMString.SequenceEqual(str);
}
#endregion Apple Mode Page 0x30: Apple OEM String
}
}

View File

@@ -35,12 +35,12 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region HP Mode Page 0x3B: Serial Number Override Mode page
public struct HP_ModePage_3B
{
@@ -107,5 +107,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion HP Mode Page 0x3B: Serial Number Override Mode page
}
}

View File

@@ -35,12 +35,12 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.Helpers;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region HP Mode Page 0x3C: Device Time Mode page
public struct HP_ModePage_3C
{
@@ -148,5 +148,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion HP Mode Page 0x3C: Device Time Mode page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region HP Mode Page 0x3D: Extended Reset Mode page
public struct HP_ModePage_3D
{
@@ -104,5 +104,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion HP Mode Page 0x3D: Extended Reset Mode page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region IBM Mode Page 0x3D: Behaviour Configuration Mode page
public struct IBM_ModePage_3D
{
@@ -90,5 +90,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion IBM Mode Page 0x3D: Behaviour Configuration Mode page
}
}

View File

@@ -35,12 +35,12 @@ using System.Diagnostics.CodeAnalysis;
using System.Text;
using Aaru.CommonTypes.Structs.Devices.SCSI;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "NotAccessedField.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region Fujitsu Mode Page 0x3E: Verify Control page
public enum Fujitsu_VerifyModes : byte
{
@@ -145,5 +145,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion Fujitsu Mode Page 0x3E: Verify Control page
}
}

View File

@@ -33,12 +33,12 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace Aaru.Decoders.SCSI
{
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
namespace Aaru.Decoders.SCSI;
[SuppressMessage("ReSharper", "InconsistentNaming"), SuppressMessage("ReSharper", "MemberCanBeInternal"),
SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
public static partial class Modes
{
public static partial class Modes
{
#region HP Mode Page 0x3E: CD-ROM Emulation/Disaster Recovery Mode page
public struct HP_ModePage_3E
{
@@ -96,5 +96,4 @@ namespace Aaru.Decoders.SCSI
return sb.ToString();
}
#endregion HP Mode Page 0x3E: CD-ROM Emulation/Disaster Recovery Mode page
}
}

Some files were not shown because too many files have changed in this diff Show More