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