REFACTOR: Final cleanup of DiscImageChef.Decoders.

This commit is contained in:
2017-12-23 18:31:38 +00:00
parent 380dbad1a0
commit e5c92090a1
100 changed files with 4791 additions and 4707 deletions

View File

@@ -36,7 +36,7 @@ using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy
{
/// <summary>
/// Methods and structures for Commodore GCR floppy decoding
/// Methods and structures for Commodore GCR floppy decoding
/// </summary>
[SuppressMessage("ReSharper", "InconsistentNaming")]
[SuppressMessage("ReSharper", "MemberCanBeInternal")]
@@ -44,55 +44,55 @@ namespace DiscImageChef.Decoders.Floppy
public static class Commodore
{
/// <summary>
/// Decoded Commodore GCR sector header
/// Decoded Commodore GCR sector header
/// </summary>
public struct SectorHeader
{
/// <summary>
/// Always 0x08
/// Always 0x08
/// </summary>
public byte id;
/// <summary>
/// XOR of following fields
/// XOR of following fields
/// </summary>
public byte checksum;
/// <summary>
/// Sector number
/// Sector number
/// </summary>
public byte sector;
/// <summary>
/// Track number
/// Track number
/// </summary>
public byte track;
/// <summary>
/// Format ID, unknown meaning
/// Format ID, unknown meaning
/// </summary>
public ushort format;
/// <summary>
/// Filled with 0x0F
/// Filled with 0x0F
/// </summary>
public ushort fill;
}
/// <summary>
/// Decoded Commodore GCR sector data
/// Decoded Commodore GCR sector data
/// </summary>
public struct SectorData
{
/// <summary>
/// Always 0x07
/// Always 0x07
/// </summary>
public byte id;
/// <summary>
/// User data
/// User data
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)] public byte data;
/// <summary>
/// XOR of <see cref="data"/>
/// XOR of <see cref="data" />
/// </summary>
public byte checksum;
/// <summary>
/// Filled with 0x0F
/// Filled with 0x0F
/// </summary>
public ushort fill;
}