mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Final cleanup of DiscImageChef.Decoders.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user