mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Refactor and code cleanup.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
// Copyright © 2011-2016 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace DiscImageChef.Decoders.Floppy
|
||||
|
||||
@@ -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 & 0x3F)
|
||||
/// </summary>
|
||||
public byte track;
|
||||
/// <summary>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
// Copyright © 2011-2016 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
using System;
|
||||
|
||||
namespace DiscImageChef.Decoders.Floppy
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user