Refactor and code cleanup.

This commit is contained in:
2016-07-28 22:25:26 +01:00
parent c93d469da9
commit a63ba13b6b
199 changed files with 3614 additions and 3744 deletions

View File

@@ -30,7 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy
@@ -76,11 +75,11 @@ namespace DiscImageChef.Decoders.Floppy
/// <summary>
/// Checksum from <see cref="amiga"/> to <see cref="label"/>
/// </summary>
public UInt32 headerChecksum;
public uint headerChecksum;
/// <summary>
/// Checksum from <see cref="data"/>
/// </summary>
public UInt32 dataChecksum;
public uint dataChecksum;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 512)]
public byte[] data;
}

View File

@@ -30,7 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy

View File

@@ -30,7 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy
@@ -89,7 +88,7 @@ namespace DiscImageChef.Decoders.Floppy
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
public byte[] prologue;
/// <summary>
/// Encoded (decodedTrack & 0x3F)
/// Encoded (decodedTrack &amp; 0x3F)
/// </summary>
public byte track;
/// <summary>

View File

@@ -30,7 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy
@@ -64,11 +63,11 @@ namespace DiscImageChef.Decoders.Floppy
/// <summary>
/// Format ID, unknown meaning
/// </summary>
public UInt16 format;
public ushort format;
/// <summary>
/// Filled with 0x0F
/// </summary>
public UInt16 fill;
public ushort fill;
}
/// <summary>
@@ -92,7 +91,7 @@ namespace DiscImageChef.Decoders.Floppy
/// <summary>
/// Filled with 0x0F
/// </summary>
public UInt16 fill;
public ushort fill;
}
}
}

View File

@@ -30,8 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
namespace DiscImageChef.Decoders.Floppy
{
/// <summary>

View File

@@ -30,7 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy
@@ -130,9 +129,9 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public IBMSectorSizeCode sectorSize;
/// <summary>
/// CRC16 from <see cref="AddressMark.aone"/> to end of <see cref="sectorSize"/>
/// CRC16 from <see cref="aone"/> to end of <see cref="sectorSize"/>
/// </summary>
public UInt16 crc;
public ushort crc;
}
/// <summary>
@@ -161,7 +160,7 @@ namespace DiscImageChef.Decoders.Floppy
/// <summary>
/// CRC16 from <see cref="aone"/> to end of <see cref="data"/>
/// </summary>
public UInt16 crc;
public ushort crc;
}
}
}

View File

@@ -30,7 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy
@@ -161,9 +160,9 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public IBMSectorSizeCode sectorSize;
/// <summary>
/// CRC16 from <see cref="AddressMark.aone"/> to end of <see cref="sectorSize"/>
/// CRC16 from <see cref="aone"/> to end of <see cref="sectorSize"/>
/// </summary>
public UInt16 crc;
public ushort crc;
}
/// <summary>
@@ -192,7 +191,7 @@ namespace DiscImageChef.Decoders.Floppy
/// <summary>
/// CRC16 from <see cref="aone"/> to end of <see cref="data"/>
/// </summary>
public UInt16 crc;
public ushort crc;
}
}
}

View File

@@ -30,7 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy
@@ -162,9 +161,9 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public IBMSectorSizeCode sectorSize;
/// <summary>
/// CRC16 from <see cref="AddressMark.aone"/> to end of <see cref="sectorSize"/>
/// CRC16 from <see cref="aone"/> to end of <see cref="sectorSize"/>
/// </summary>
public UInt16 crc;
public ushort crc;
}
/// <summary>
@@ -193,7 +192,7 @@ namespace DiscImageChef.Decoders.Floppy
/// <summary>
/// CRC16 from <see cref="aone"/> to end of <see cref="data"/>
/// </summary>
public UInt16 crc;
public ushort crc;
}
}
}

View File

@@ -30,7 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
using System.Runtime.InteropServices;
namespace DiscImageChef.Decoders.Floppy
@@ -152,7 +151,7 @@ namespace DiscImageChef.Decoders.Floppy
/// <summary>
/// CRC16 from <see cref="type"/> to end of <see cref="sectorSize"/>
/// </summary>
public UInt16 crc;
public ushort crc;
}
/// <summary>
@@ -176,7 +175,7 @@ namespace DiscImageChef.Decoders.Floppy
/// <summary>
/// CRC16 from <see cref="type"/> to end of <see cref="data"/>
/// </summary>
public UInt16 crc;
public ushort crc;
}
}
}