Refactor and code cleanup.

This commit is contained in:
2016-07-28 22:25:26 +01:00
parent af68104f4e
commit 1ad3366dae
57 changed files with 303 additions and 284 deletions

View File

@@ -59,7 +59,7 @@ namespace DiscImageChef.Decoders.CD
/// Bytes 1 to 0
/// Total size of returned session information minus this field
/// </summary>
public UInt16 DataLength;
public ushort DataLength;
/// <summary>
/// Byte 2
/// Reserved

View File

@@ -33,7 +33,6 @@
using System;
using DiscImageChef.Console;
using System.Text;
using System.Collections.Generic;
namespace DiscImageChef.Decoders.CD
{
@@ -127,7 +126,7 @@ namespace DiscImageChef.Decoders.CD
/// <summary>
/// Total size of returned CD-Text information minus this field
/// </summary>
public UInt16 DataLength;
public ushort DataLength;
/// <summary>
/// Reserved
/// </summary>
@@ -183,7 +182,7 @@ namespace DiscImageChef.Decoders.CD
/// Bytes 16 to 17
/// CRC16
/// </summary>
public UInt16 CRC;
public ushort CRC;
}
public static CDText? Decode(byte[] CDTextResponse)

View File

@@ -30,8 +30,6 @@
// Copyright © 2011-2016 Natalia Portillo
// ****************************************************************************/
using System;
namespace DiscImageChef.Decoders.CD
{
public enum TOC_ADR : byte

View File

@@ -67,7 +67,7 @@ namespace DiscImageChef.Decoders.CD
/// <summary>
/// Total size of returned session information minus this field
/// </summary>
public UInt16 DataLength;
public ushort DataLength;
/// <summary>
/// First complete session number in hex
/// </summary>

View File

@@ -58,7 +58,7 @@ namespace DiscImageChef.Decoders.CD
/// <summary>
/// Total size of returned session information minus this field
/// </summary>
public UInt16 DataLength;
public ushort DataLength;
/// <summary>
/// Reserved
/// </summary>

View File

@@ -58,7 +58,7 @@ namespace DiscImageChef.Decoders.CD
/// <summary>
/// Total size of returned session information minus this field
/// </summary>
public UInt16 DataLength;
public ushort DataLength;
/// <summary>
/// First track number in hex
/// </summary>
@@ -104,7 +104,7 @@ namespace DiscImageChef.Decoders.CD
/// Bytes 4 to 7
/// First track number in last complete session start address in LBA or in MSF
/// </summary>
public UInt32 TrackStartAddress;
public uint TrackStartAddress;
}
public static CDSessionInfo? Decode(byte[] CDSessionInfoResponse)

View File

@@ -60,7 +60,7 @@ namespace DiscImageChef.Decoders.CD
/// <summary>
/// Total size of returned TOC minus this field
/// </summary>
public UInt16 DataLength;
public ushort DataLength;
/// <summary>
/// First track number in hex
/// </summary>
@@ -106,7 +106,7 @@ namespace DiscImageChef.Decoders.CD
/// Bytes 4 to 7
/// The track start address in LBA or in MSF
/// </summary>
public UInt32 TrackStartAddress;
public uint TrackStartAddress;
}
public static CDTOC? Decode(byte[] CDTOCResponse)