REFACTOR: Unnecessary whitespace removal.

This commit is contained in:
2017-12-21 07:36:47 +00:00
parent 422f80805a
commit 35ce7db892
36 changed files with 443 additions and 443 deletions

View File

@@ -32,7 +32,7 @@
using System.Reflection;
// Information about this assembly is defined by the following attributes.
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("DiscImageChef.Core")]
@@ -50,7 +50,7 @@ using System.Reflection;
[assembly: AssemblyVersion("3.99.6.0")]
// The following attributes are used to specify the signing key for the assembly,
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]

View File

@@ -825,7 +825,7 @@ namespace DiscImageChef.Decoders.ATA
/// </summary>
UltraFastIDE = 0x0400,
/// <summary>
/// Disk transfer rate is &gt; 5 Mb/s but &lt;= 10 Mb/s
/// Disk transfer rate is &gt; 5 Mb/s but &lt;= 10 Mb/s
/// Obsoleted in ATA-2
/// </summary>
FastIDE = 0x0200,

View File

@@ -247,7 +247,7 @@ namespace DiscImageChef.Decoders.Bluray
/// </summary>
public byte SpareAreaFullFlags;
/// <summary>
/// Byte 57
/// Byte 57
/// Reserved
/// </summary>
public byte Reserved7;

View File

@@ -70,7 +70,7 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] public byte[] label;
/// <summary>
/// Checksum from <see cref="amiga"/> to <see cref="label"/>
/// Checksum from <see cref="amiga"/> to <see cref="label"/>
/// </summary>
public uint headerChecksum;
/// <summary>

View File

@@ -126,7 +126,7 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)] public byte[] prologue;
/// <summary>
/// Spare, usually <see cref="RawAddressField.sector"/>
/// Spare, usually <see cref="RawAddressField.sector"/>
/// </summary>
public byte spare;
/// <summary>

View File

@@ -121,11 +121,11 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public byte sector;
/// <summary>
/// <see cref="IBMSectorSizeCode"/>
/// <see cref="IBMSectorSizeCode"/>
/// </summary>
public IBMSectorSizeCode sectorSize;
/// <summary>
/// CRC16 from <see cref="aone"/> to end of <see cref="sectorSize"/>
/// CRC16 from <see cref="aone"/> to end of <see cref="sectorSize"/>
/// </summary>
public ushort crc;
}
@@ -152,7 +152,7 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public byte[] data;
/// <summary>
/// CRC16 from <see cref="aone"/> to end of <see cref="data"/>
/// CRC16 from <see cref="aone"/> to end of <see cref="data"/>
/// </summary>
public ushort crc;
}

View File

@@ -110,7 +110,7 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)] public byte[] ctwo;
/// <summary>
/// Set to <see cref="IBMIdType.IndexMark"/>
/// Set to <see cref="IBMIdType.IndexMark"/>
/// </summary>
public IBMIdType type;
/// <summary>
@@ -149,11 +149,11 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public byte sector;
/// <summary>
/// <see cref="IBMSectorSizeCode"/>
/// <see cref="IBMSectorSizeCode"/>
/// </summary>
public IBMSectorSizeCode sectorSize;
/// <summary>
/// CRC16 from <see cref="aone"/> to end of <see cref="sectorSize"/>
/// CRC16 from <see cref="aone"/> to end of <see cref="sectorSize"/>
/// </summary>
public ushort crc;
}
@@ -180,7 +180,7 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public byte[] data;
/// <summary>
/// CRC16 from <see cref="aone"/> to end of <see cref="data"/>
/// CRC16 from <see cref="aone"/> to end of <see cref="data"/>
/// </summary>
public ushort crc;
}

View File

@@ -88,7 +88,7 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)] public byte[] ctwo;
/// <summary>
/// Set to <see cref="IBMIdType.IndexMark"/>
/// Set to <see cref="IBMIdType.IndexMark"/>
/// </summary>
public IBMIdType type;
/// <summary>
@@ -150,11 +150,11 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public byte sector;
/// <summary>
/// <see cref="IBMSectorSizeCode"/>
/// <see cref="IBMSectorSizeCode"/>
/// </summary>
public IBMSectorSizeCode sectorSize;
/// <summary>
/// CRC16 from <see cref="aone"/> to end of <see cref="sectorSize"/>
/// CRC16 from <see cref="aone"/> to end of <see cref="sectorSize"/>
/// </summary>
public ushort crc;
}
@@ -181,7 +181,7 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public byte[] data;
/// <summary>
/// CRC16 from <see cref="aone"/> to end of <see cref="data"/>
/// CRC16 from <see cref="aone"/> to end of <see cref="data"/>
/// </summary>
public ushort crc;
}

View File

@@ -82,7 +82,7 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)] public byte[] zero;
/// <summary>
/// Set to <see cref="IBMIdType.IndexMark"/>
/// Set to <see cref="IBMIdType.IndexMark"/>
/// </summary>
public IBMIdType type;
/// <summary>
@@ -140,11 +140,11 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public byte sector;
/// <summary>
/// <see cref="IBMSectorSizeCode"/>
/// <see cref="IBMSectorSizeCode"/>
/// </summary>
public IBMSectorSizeCode sectorSize;
/// <summary>
/// CRC16 from <see cref="type"/> to end of <see cref="sectorSize"/>
/// CRC16 from <see cref="type"/> to end of <see cref="sectorSize"/>
/// </summary>
public ushort crc;
}
@@ -167,7 +167,7 @@ namespace DiscImageChef.Decoders.Floppy
/// </summary>
public byte[] data;
/// <summary>
/// CRC16 from <see cref="type"/> to end of <see cref="data"/>
/// CRC16 from <see cref="type"/> to end of <see cref="data"/>
/// </summary>
public ushort crc;
}

View File

@@ -48,7 +48,7 @@ namespace DiscImageChef.Decoders.PCMCIA
public class ChecksumTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_CHECKSUM"/>
/// <see cref="TupleCodes.CISTPL_CHECKSUM"/>
/// </summary>
public TupleCodes Code;
/// <summary>
@@ -75,7 +75,7 @@ namespace DiscImageChef.Decoders.PCMCIA
public class IndirectTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_INDIRECT"/>
/// <see cref="TupleCodes.CISTPL_INDIRECT"/>
/// </summary>
public TupleCodes Code;
/// <summary>
@@ -90,7 +90,7 @@ namespace DiscImageChef.Decoders.PCMCIA
public class LinkTargetTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_LINKTARGET"/>
/// <see cref="TupleCodes.CISTPL_LINKTARGET"/>
/// </summary>
public TupleCodes Code;
/// <summary>
@@ -140,7 +140,7 @@ namespace DiscImageChef.Decoders.PCMCIA
public class MultipleFunctionLinkTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_LONGLINK_MFC"/>
/// <see cref="TupleCodes.CISTPL_LONGLINK_MFC"/>
/// </summary>
public TupleCodes Code;
/// <summary>
@@ -160,7 +160,7 @@ namespace DiscImageChef.Decoders.PCMCIA
public class NoLinkTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_NO_LINK"/>
/// <see cref="TupleCodes.CISTPL_NO_LINK"/>
/// </summary>
public TupleCodes Code;
/// <summary>
@@ -172,7 +172,7 @@ namespace DiscImageChef.Decoders.PCMCIA
public class AlternateStringTuple
{
/// <summary>
/// <see cref="TupleCodes.CISTPL_ALTSTR"/>
/// <see cref="TupleCodes.CISTPL_ALTSTR"/>
/// </summary>
public TupleCodes Code;
/// <summary>

View File

@@ -65,7 +65,7 @@ namespace DiscImageChef.Decoders.SCSI
/// </summary>
public ushort DisconnectTimeLimit;
/// <summary>
/// Max. time in 100 µs increments allowed to use the bus before disconnecting, if granted the privilege and not restricted by <see cref="DTDC"/>
/// Max. time in 100 µs increments allowed to use the bus before disconnecting, if granted the privilege and not restricted by <see cref="DTDC"/>
/// </summary>
public ushort ConnectTimeLimit;
/// <summary>

View File

@@ -49,11 +49,11 @@ namespace DiscImageChef.Decoders.SCSI
/// </summary>
public bool PS;
/// <summary>
/// Used in mode select to change partition to one specified in <see cref="ActivePartition"/>
/// Used in mode select to change partition to one specified in <see cref="ActivePartition"/>
/// </summary>
public bool CAP;
/// <summary>
/// Used in mode select to change format to one specified in <see cref="ActiveFormat"/>
/// Used in mode select to change format to one specified in <see cref="ActiveFormat"/>
/// </summary>
public bool CAF;
/// <summary>

View File

@@ -199,7 +199,7 @@ namespace DiscImageChef.Decoders.SCSI
return sb.ToString();
}
#endregion Mode Page 0x1C: Informational exceptions control page
#region Mode Page 0x1C subpage 0x01: Background Control mode page
/// <summary>
/// Background Control mode page

View File

@@ -88,7 +88,7 @@ namespace DiscImageChef.Decoders.SCSI
{
return PrettifyModeHeader(DecodeModeHeader6(modeResponse, deviceType), deviceType);
}
public static DecodedMode? DecodeMode6(byte[] modeResponse, PeripheralDeviceTypes deviceType)
{
ModeHeader? hdr = DecodeModeHeader6(modeResponse, deviceType);

View File

@@ -571,7 +571,7 @@ namespace DiscImageChef.Devices
#region Commands defined on ATA/ATAPI-8 rev. 3f
/// <summary>
/// Sends a Non Volatile Cache subcommand. <see cref="AtaNonVolatileCacheSubCommands"/>
/// Sends a Non Volatile Cache subcommand. <see cref="AtaNonVolatileCacheSubCommands"/>
/// </summary>
NonVolatileCacheCommand = 0xB6,
/// <summary>
@@ -735,7 +735,7 @@ namespace DiscImageChef.Devices
{
#region Commands defined on ATA/ATAPI-6 rev. 3b
/// <summary>
/// Disables any change made by <see cref="Set"/>
/// Disables any change made by <see cref="Set"/>
/// </summary>
Restore = 0xC0,
/// <summary>
@@ -778,7 +778,7 @@ namespace DiscImageChef.Devices
/// </summary>
SetPassword = 0x01,
/// <summary>
/// Disables <see cref="Lock"/>
/// Disables <see cref="Lock"/>
/// </summary>
UnLock = 0x03,
#endregion Commands defined on ATA/ATAPI-6 rev. 3b
@@ -814,7 +814,7 @@ namespace DiscImageChef.Devices
RemoveLbaFromNvCache = 0x11,
/// <summary>
/// Disables the Non Volatile Cache Power Mode
/// <see cref="SetNvCachePowerMode"/>
/// <see cref="SetNvCachePowerMode"/>
/// </summary>
ReturnFromNvCachePowerMode = 0x01,
/// <summary>
@@ -1059,7 +1059,7 @@ namespace DiscImageChef.Devices
/// </summary>
WriteDiagnosticOld = 0x1B,
/// <summary>
/// Requests the data after completion of a <see cref="WriteDiagnostic"/>
/// Requests the data after completion of a <see cref="WriteDiagnostic"/>
/// ANSI X3T9.3 No. 185 (SASI)
/// </summary>
ReadDiagnostic = 0x1C,
@@ -1464,12 +1464,12 @@ namespace DiscImageChef.Devices
/// </summary>
ReadSerialNumber = 0xAB,
/// <summary>
/// Receives information about a previous or current <see cref="ExtendedCopy"/>
/// Receives information about a previous or current <see cref="ExtendedCopy"/>
/// SPC-2 rev. 20
/// </summary>
ReceiveCopyResults = 0x84,
/// <summary>
/// Requests the data after completion of a <see cref="SendDiagnostic"/>
/// Requests the data after completion of a <see cref="SendDiagnostic"/>
/// ECMA-111 (SCSI-1)
/// </summary>
ReceiveDiagnostic = SasiCommands.ReadDiagnostic,
@@ -1525,7 +1525,7 @@ namespace DiscImageChef.Devices
ServiceActionIn = 0x9E,
/// <summary>
/// Extended commands
/// SPC-4
/// SPC-4
/// </summary>
ServiceActionOut = 0x9F,
/// <summary>
@@ -2276,7 +2276,7 @@ namespace DiscImageChef.Devices
/// </summary>
ReportVolumeTypesSupported = 0x44,
/// <summary>
/// Gets the results of <see cref="SendVolumeTag"/>
/// Gets the results of <see cref="SendVolumeTag"/>
/// SCSI-2 X3T9.2/375R rev. 10l
/// </summary>
RequestVolumeElementAddress = 0xB5,

View File

@@ -187,7 +187,7 @@ namespace DiscImageChef.Devices.FreeBSD
struct CcbScsiio
{
public CcbHdr ccb_h;
/// <summary>Ptr for next CCB for action</summary>
/// <summary>Ptr for next CCB for action</summary>
public IntPtr next_ccb;
/// <summary>Ptr to mapping info</summary>
public IntPtr req_map;
@@ -233,7 +233,7 @@ namespace DiscImageChef.Devices.FreeBSD
struct CcbScsiio64
{
public CcbHdr ccb_h;
/// <summary>Ptr for next CCB for action</summary>
/// <summary>Ptr for next CCB for action</summary>
public IntPtr next_ccb;
/// <summary>Ptr to mapping info</summary>
public IntPtr req_map;
@@ -280,7 +280,7 @@ namespace DiscImageChef.Devices.FreeBSD
struct CcbAtaio
{
public CcbHdr ccb_h;
/// <summary>Ptr for next CCB for action</summary>
/// <summary>Ptr for next CCB for action</summary>
public IntPtr next_ccb;
/// <summary>ATA command register set</summary>
public AtaCmd cmd;
@@ -443,7 +443,7 @@ namespace DiscImageChef.Devices.FreeBSD
struct CcbNvmeio
{
public CcbHdr ccb_h;
/// <summary>Ptr for next CCB for action</summary>
/// <summary>Ptr for next CCB for action</summary>
public IntPtr next_ccb;
/// <summary>NVME command, per NVME standard</summary>
public NvmeCommand cmd;
@@ -578,12 +578,12 @@ namespace DiscImageChef.Devices.FreeBSD
public uint io_ocr;
/// <summary>
/// Card CID -- raw
/// Card CID -- raw
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] public uint[] card_cid;
/// <summary>
/// Card CID -- parsed
/// Card CID -- parsed
/// </summary>
public MmcCid cid;

File diff suppressed because it is too large Load Diff

View File

@@ -38,13 +38,13 @@ using System.Runtime.InteropServices;
namespace DiscImageChef.Devices.Windows
{
//
// A place for "higher level" related functions
// You might not want to keep these in the USB class... your choice
// A place for "higher level" related functions
// You might not want to keep these in the USB class... your choice
//
partial class Usb
{
//
// Get a list of all connected devices
// Get a list of all connected devices
//
static internal List<UsbDevice> GetConnectedDevices()
{
@@ -55,7 +55,7 @@ namespace DiscImageChef.Devices.Windows
return devList;
}
// private routine for enumerating a hub
// private routine for enumerating a hub
static void ListHub(UsbHub hub, List<UsbDevice> devList)
{
foreach(UsbPort port in hub.GetPorts())
@@ -64,7 +64,7 @@ namespace DiscImageChef.Devices.Windows
}
//
// Find a device based upon it's DriverKeyName
// Find a device based upon it's DriverKeyName
//
static internal UsbDevice FindDeviceByDriverKeyName(string driverKeyName)
{
@@ -79,7 +79,7 @@ namespace DiscImageChef.Devices.Windows
return foundDevice;
}
// private routine for enumerating a hub
// private routine for enumerating a hub
static void SearchHubDriverKeyName(UsbHub hub, ref UsbDevice foundDevice, string driverKeyName)
{
foreach(UsbPort port in hub.GetPorts())
@@ -97,7 +97,7 @@ namespace DiscImageChef.Devices.Windows
}
//
// Find a device based upon it's Instance ID
// Find a device based upon it's Instance ID
//
static internal UsbDevice FindDeviceByInstanceId(string instanceId)
{
@@ -112,7 +112,7 @@ namespace DiscImageChef.Devices.Windows
return foundDevice;
}
// private routine for enumerating a hub
// private routine for enumerating a hub
static void SearchHubInstanceId(UsbHub hub, ref UsbDevice foundDevice, string instanceId)
{
foreach(UsbPort port in hub.GetPorts())
@@ -134,11 +134,11 @@ namespace DiscImageChef.Devices.Windows
internal const string GuidDevinterfaceCdrom = "53f56308-b6bf-11d0-94f2-00a0c91efb8b";
internal const string GuidDevinterfaceFloppy = "53f56311-b6bf-11d0-94f2-00a0c91efb8b";
//typedef struct _STORAGE_DEVICE_NUMBER {
// DEVICE_TYPE DeviceType;
// ULONG DeviceNumber;
// ULONG PartitionNumber;
//} STORAGE_DEVICE_NUMBER, *PSTORAGE_DEVICE_NUMBER;
//typedef struct _STORAGE_DEVICE_NUMBER {
// DEVICE_TYPE DeviceType;
// ULONG DeviceNumber;
// ULONG PartitionNumber;
//} STORAGE_DEVICE_NUMBER, *PSTORAGE_DEVICE_NUMBER;
[StructLayout(LayoutKind.Sequential)]
struct StorageDeviceNumber
{
@@ -147,34 +147,34 @@ namespace DiscImageChef.Devices.Windows
internal int PartitionNumber;
}
//CMAPI CONFIGRET WINAPI CM_Get_Parent(
// OUT PDEVINST pdnDevInst,
// IN DEVINST dnDevInst,
// IN ULONG ulFlags
//);
//CMAPI CONFIGRET WINAPI CM_Get_Parent(
// OUT PDEVINST pdnDevInst,
// IN DEVINST dnDevInst,
// IN ULONG ulFlags
//);
[DllImport("setupapi.dll")]
static extern int CM_Get_Parent(out IntPtr pdnDevInst, IntPtr dnDevInst, int ulFlags);
//CMAPI CONFIGRET WINAPI CM_Get_Device_ID(
// IN DEVINST dnDevInst,
// OUT PTCHAR Buffer,
// IN ULONG BufferLen,
// IN ULONG ulFlags
//);
//CMAPI CONFIGRET WINAPI CM_Get_Device_ID(
// IN DEVINST dnDevInst,
// OUT PTCHAR Buffer,
// IN ULONG BufferLen,
// IN ULONG ulFlags
//);
[DllImport("setupapi.dll", CharSet = CharSet.Auto)]
static extern int CM_Get_Device_ID(IntPtr dnDevInst, IntPtr buffer, int bufferLen, int ulFlags);
//
// Find a device based upon a Drive Letter
// Find a device based upon a Drive Letter
//
static internal UsbDevice FindDriveLetter(string driveLetter, string deviceGuid)
{
UsbDevice foundDevice = null;
string instanceId = "";
// We start by getting the unique DeviceNumber of the given
// DriveLetter. We'll use this later to find a matching
// DevicePath "symbolic name"
// We start by getting the unique DeviceNumber of the given
// DriveLetter. We'll use this later to find a matching
// DevicePath "symbolic name"
int devNum = GetDeviceNumber(@"\\.\" + driveLetter.TrimEnd('\\'));
if(devNum < 0) return null;
@@ -186,9 +186,9 @@ namespace DiscImageChef.Devices.Windows
UsbDevice foundDevice = null;
string instanceId = "";
// We start by getting the unique DeviceNumber of the given
// DriveLetter. We'll use this later to find a matching
// DevicePath "symbolic name"
// We start by getting the unique DeviceNumber of the given
// DriveLetter. We'll use this later to find a matching
// DevicePath "symbolic name"
int devNum = GetDeviceNumber(drivePath);
if(devNum < 0) return null;
@@ -196,7 +196,7 @@ namespace DiscImageChef.Devices.Windows
}
//
// Find a device based upon a Drive Letter
// Find a device based upon a Drive Letter
//
static internal UsbDevice FindDeviceNumber(int devNum, string deviceGuid)
{
@@ -205,8 +205,8 @@ namespace DiscImageChef.Devices.Windows
Guid diskGuid = new Guid(deviceGuid);
// We start at the "root" of the device tree and look for all
// devices that match the interface GUID of a disk
// We start at the "root" of the device tree and look for all
// devices that match the interface GUID of a disk
IntPtr h = SetupDiGetClassDevs(ref diskGuid, 0, IntPtr.Zero, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
if(h.ToInt32() != INVALID_HANDLE_VALUE)
{
@@ -214,34 +214,34 @@ namespace DiscImageChef.Devices.Windows
int i = 0;
do
{
// create a Device Interface Data structure
// create a Device Interface Data structure
SpDeviceInterfaceData dia = new SpDeviceInterfaceData();
dia.cbSize = Marshal.SizeOf(dia);
// start the enumeration
// start the enumeration
success = SetupDiEnumDeviceInterfaces(h, IntPtr.Zero, ref diskGuid, i, ref dia);
if(success)
{
// build a DevInfo Data structure
// build a DevInfo Data structure
SpDevinfoData da = new SpDevinfoData();
da.cbSize = Marshal.SizeOf(da);
// build a Device Interface Detail Data structure
// build a Device Interface Detail Data structure
SpDeviceInterfaceDetailData didd = new SpDeviceInterfaceDetailData();
didd.cbSize = 4 + Marshal.SystemDefaultCharSize; // trust me :)
didd.cbSize = 4 + Marshal.SystemDefaultCharSize; // trust me :)
// now we can get some more detailed information
// now we can get some more detailed information
int nRequiredSize = 0;
int nBytes = BUFFER_SIZE;
if(SetupDiGetDeviceInterfaceDetail(h, ref dia, ref didd, nBytes, ref nRequiredSize, ref da))
if(GetDeviceNumber(didd.DevicePath) == devNum)
{
// current InstanceID is at the "USBSTOR" level, so we
// need up "move up" one level to get to the "USB" level
// current InstanceID is at the "USBSTOR" level, so we
// need up "move up" one level to get to the "USB" level
IntPtr ptrPrevious;
CM_Get_Parent(out ptrPrevious, da.DevInst, 0);
// Now we get the InstanceID of the USB level device
// Now we get the InstanceID of the USB level device
IntPtr ptrInstanceBuf = Marshal.AllocHGlobal(nBytes);
CM_Get_Device_ID(ptrPrevious, ptrInstanceBuf, nBytes, 0);
instanceId = Marshal.PtrToStringAuto(ptrInstanceBuf);
@@ -258,12 +258,12 @@ namespace DiscImageChef.Devices.Windows
SetupDiDestroyDeviceInfoList(h);
}
// Did we find an InterfaceID of a USB device?
// Did we find an InterfaceID of a USB device?
if(instanceId.StartsWith("USB\\")) foundDevice = FindDeviceByInstanceId(instanceId);
return foundDevice;
}
// return a unique device number for the given device path
// return a unique device number for the given device path
static int GetDeviceNumber(string devicePath)
{
int ans = -1;
@@ -280,8 +280,8 @@ namespace DiscImageChef.Devices.Windows
IntPtr.Zero))
{
sdn = (StorageDeviceNumber)Marshal.PtrToStructure(ptrSdn, typeof(StorageDeviceNumber));
// just my way of combining the relevant parts of the
// STORAGE_DEVICE_NUMBER into a single number
// just my way of combining the relevant parts of the
// STORAGE_DEVICE_NUMBER into a single number
ans = (sdn.DeviceType << 8) + sdn.DeviceNumber;
}
Marshal.FreeHGlobal(ptrSdn);

View File

@@ -122,7 +122,7 @@ namespace DiscImageChef.DiscImages
/// </summary>
public uint flags;
/// <summary>
/// Compression algorithm, <see cref="ChdCompression"/>
/// Compression algorithm, <see cref="ChdCompression"/>
/// </summary>
public uint compression;
/// <summary>
@@ -176,7 +176,7 @@ namespace DiscImageChef.DiscImages
/// </summary>
public uint flags;
/// <summary>
/// Compression algorithm, <see cref="ChdCompression"/>
/// Compression algorithm, <see cref="ChdCompression"/>
/// </summary>
public uint compression;
/// <summary>
@@ -233,7 +233,7 @@ namespace DiscImageChef.DiscImages
/// </summary>
public uint flags;
/// <summary>
/// Compression algorithm, <see cref="ChdCompression"/>
/// Compression algorithm, <see cref="ChdCompression"/>
/// </summary>
public uint compression;
/// <summary>
@@ -326,7 +326,7 @@ namespace DiscImageChef.DiscImages
/// </summary>
public uint flags;
/// <summary>
/// Compression algorithm, <see cref="ChdCompression"/>
/// Compression algorithm, <see cref="ChdCompression"/>
/// </summary>
public uint compression;
/// <summary>

View File

@@ -66,7 +66,7 @@ namespace DiscImageChef.DiscImages
struct ParallelsHeader
{
/// <summary>
/// Magic, <see cref="Parallels.parallelsMagic"/> or <see cref="Parallels.parallelsExtMagic"/>
/// Magic, <see cref="Parallels.parallelsMagic"/> or <see cref="Parallels.parallelsExtMagic"/>
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] public byte[] magic;
/// <summary>

View File

@@ -65,7 +65,7 @@ namespace DiscImageChef.DiscImages
struct QCowHeader
{
/// <summary>
/// <see cref="Qcow.QCOW_MAGIC"/>
/// <see cref="Qcow.QCOW_MAGIC"/>
/// </summary>
public uint magic;
/// <summary>
@@ -77,7 +77,7 @@ namespace DiscImageChef.DiscImages
/// </summary>
public ulong backing_file_offset;
/// <summary>
/// Size of <see cref="backing_file_offset"/>
/// Size of <see cref="backing_file_offset"/>
/// </summary>
public uint backing_file_size;
/// <summary>

View File

@@ -80,7 +80,7 @@ namespace DiscImageChef.DiscImages
struct QCow2Header
{
/// <summary>
/// <see cref="Qcow2.QCOW_MAGIC"/>
/// <see cref="Qcow2.QCOW_MAGIC"/>
/// </summary>
public uint magic;
/// <summary>
@@ -92,7 +92,7 @@ namespace DiscImageChef.DiscImages
/// </summary>
public ulong backing_file_offset;
/// <summary>
/// Size of <see cref="backing_file_offset"/>
/// Size of <see cref="backing_file_offset"/>
/// </summary>
public uint backing_file_size;
/// <summary>

View File

@@ -77,7 +77,7 @@ namespace DiscImageChef.DiscImages
struct QedHeader
{
/// <summary>
/// <see cref="Qed.QED_MAGIC"/>
/// <see cref="Qed.QED_MAGIC"/>
/// </summary>
public uint magic;
/// <summary>
@@ -117,7 +117,7 @@ namespace DiscImageChef.DiscImages
/// </summary>
public ulong backing_file_offset;
/// <summary>
/// Size of <see cref="backing_file_offset"/>
/// Size of <see cref="backing_file_offset"/>
/// </summary>
public uint backing_file_size;
}

View File

@@ -55,7 +55,7 @@ namespace DiscImageChef.DiscImages
struct HardDiskFooter
{
/// <summary>
/// Offset 0x00, File magic number, <see cref="Vhd.IMAGE_COOKIE"/>
/// Offset 0x00, File magic number, <see cref="Vhd.IMAGE_COOKIE"/>
/// </summary>
public ulong Cookie;
/// <summary>
@@ -150,7 +150,7 @@ namespace DiscImageChef.DiscImages
struct DynamicDiskHeader
{
/// <summary>
/// Offset 0x00, Header magic, <see cref="Vhd.DYNAMIC_COOKIE"/>
/// Offset 0x00, Header magic, <see cref="Vhd.DYNAMIC_COOKIE"/>
/// </summary>
public ulong Cookie;
/// <summary>
@@ -196,7 +196,7 @@ namespace DiscImageChef.DiscImages
/// </summary>
public string ParentName;
/// <summary>
/// Offset 0x240, Parent disk image locator entry, <see cref="ParentLocatorEntry"/>
/// Offset 0x240, Parent disk image locator entry, <see cref="ParentLocatorEntry"/>
/// </summary>
public ParentLocatorEntry[] LocatorEntries;
/// <summary>

View File

@@ -49,7 +49,7 @@ namespace DiscImageChef.DiscImages
struct VhdxIdentifier
{
/// <summary>
/// Signature, <see cref="Vhdx.VHDX_SIGNATURE"/>
/// Signature, <see cref="Vhdx.VHDX_SIGNATURE"/>
/// </summary>
public ulong signature;
/// <summary>
@@ -61,7 +61,7 @@ namespace DiscImageChef.DiscImages
struct VhdxHeader
{
/// <summary>
/// Signature, <see cref="Vhdx.VHDX_HEADER_SIG"/>
/// Signature, <see cref="Vhdx.VHDX_HEADER_SIG"/>
/// </summary>
public uint Signature;
/// <summary>
@@ -107,7 +107,7 @@ namespace DiscImageChef.DiscImages
struct VhdxRegionTableHeader
{
/// <summary>
/// Signature, <see cref="Vhdx.VHDX_REGION_SIG"/>
/// Signature, <see cref="Vhdx.VHDX_REGION_SIG"/>
/// </summary>
public uint signature;
/// <summary>

View File

@@ -86,7 +86,7 @@ namespace DiscImageChef.Filesystems.CPM
byte[] labelUpdateDate;
/// <summary>
/// Cached <see cref="FileSystemInfo"/>
/// Cached <see cref="FileSystemInfo"/>
/// </summary>
FileSystemInfo cpmStat;
/// <summary>
@@ -98,7 +98,7 @@ namespace DiscImageChef.Filesystems.CPM
/// </summary>
Dictionary<string, byte[]> fileCache;
/// <summary>
/// Cached file <see cref="FileEntryInfo"/>
/// Cached file <see cref="FileEntryInfo"/>
/// </summary>
Dictionary<string, FileEntryInfo> statCache;
/// <summary>

View File

@@ -9,7 +9,7 @@
//
// --[ Description ] ----------------------------------------------------------
//
// Handles definitions of known CP/M disks.
// Handles definitions of known CP/M disks.
//
// --[ License ] --------------------------------------------------------------
//
@@ -154,7 +154,7 @@ namespace DiscImageChef.Filesystems.CPM
/// </summary>
public int bsh;
/// <summary>
/// Block mask for <see cref="bsh"/>
/// Block mask for <see cref="bsh"/>
/// </summary>
public int blm;
/// <summary>

View File

@@ -202,43 +202,43 @@ namespace DiscImageChef.Filesystems.CPM
/// </summary>
public byte recordsPerSector;
/// <summary>
/// <see cref="DiscParameterBlock.spt"/>
/// <see cref="DiscParameterBlock.spt"/>
/// </summary>
public ushort spt;
/// <summary>
/// <see cref="DiscParameterBlock.bsh"/>
/// <see cref="DiscParameterBlock.bsh"/>
/// </summary>
public byte bsh;
/// <summary>
/// <see cref="DiscParameterBlock.blm"/>
/// <see cref="DiscParameterBlock.blm"/>
/// </summary>
public byte blm;
/// <summary>
/// <see cref="DiscParameterBlock.exm"/>
/// <see cref="DiscParameterBlock.exm"/>
/// </summary>
public byte exm;
/// <summary>
/// <see cref="DiscParameterBlock.dsm"/>
/// <see cref="DiscParameterBlock.dsm"/>
/// </summary>
public ushort dsm;
/// <summary>
/// <see cref="DiscParameterBlock.drm"/>
/// <see cref="DiscParameterBlock.drm"/>
/// </summary>
public ushort drm;
/// <summary>
/// <see cref="DiscParameterBlock.al0"/>
/// <see cref="DiscParameterBlock.al0"/>
/// </summary>
public ushort al0;
/// <summary>
/// <see cref="DiscParameterBlock.al1"/>
/// <see cref="DiscParameterBlock.al1"/>
/// </summary>
public ushort al1;
/// <summary>
/// <see cref="DiscParameterBlock.cks"/>
/// <see cref="DiscParameterBlock.cks"/>
/// </summary>
public ushort cks;
/// <summary>
/// <see cref="DiscParameterBlock.off"/>
/// <see cref="DiscParameterBlock.off"/>
/// </summary>
public ushort off;
/// <summary>
@@ -302,7 +302,7 @@ namespace DiscImageChef.Filesystems.CPM
/// </summary>
public ushort reserved;
/// <summary>
/// Password XOR'ed with <see cref="passwordDecoder"/>
/// Password XOR'ed with <see cref="passwordDecoder"/>
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] public byte[] password;
/// <summary>
@@ -395,7 +395,7 @@ namespace DiscImageChef.Filesystems.CPM
public byte passwordDecoder;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)] public byte[] reserved;
/// <summary>
/// Password XOR'ed with <see cref="passwordDecoder"/>
/// Password XOR'ed with <see cref="passwordDecoder"/>
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] public byte[] password;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] public byte[] reserved2;
@@ -451,7 +451,7 @@ namespace DiscImageChef.Filesystems.CPM
}
/// <summary>
/// Directory entry for &lt;256 allocation blocks
/// Directory entry for &lt;256 allocation blocks
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct DirectoryEntry
@@ -492,7 +492,7 @@ namespace DiscImageChef.Filesystems.CPM
}
/// <summary>
/// Directory entry for &bt;256 allocation blocks
/// Directory entry for &bt;256 allocation blocks
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct DirectoryEntry16

View File

@@ -99,7 +99,7 @@ namespace DiscImageChef.Filesystems
public abstract Errno Mount(bool debug);
/// <summary>
/// Frees all internal structures created by <see cref="Mount()"/>
/// Frees all internal structures created by <see cref="Mount()"/>
/// </summary>
public abstract Errno Unmount();

View File

@@ -82,7 +82,7 @@ namespace DiscImageChef.Filesystems
struct JFS_Extent
{
/// <summary>
/// Leftmost 24 bits are extent length, rest 8 bits are most significant for <see cref="addr2"/>
/// Leftmost 24 bits are extent length, rest 8 bits are most significant for <see cref="addr2"/>
/// </summary>
public uint len_addr;
public uint addr2;

View File

@@ -32,7 +32,7 @@
using System.Reflection;
// Information about this assembly is defined by the following attributes.
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("DiscImageChef.Filters")]
@@ -50,7 +50,7 @@ using System.Reflection;
[assembly: AssemblyVersion("1.0.*")]
// The following attributes are used to specify the signing key for the assembly,
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]

View File

@@ -129,7 +129,7 @@ namespace DiscImageChef.Filters
void GuessSize()
{
decompressedSize = 0;
// Seek to footer backwards size field
// Seek to footer backwards size field
dataStream.Seek(-8, SeekOrigin.End);
byte[] tmp = new byte[4];
dataStream.Read(tmp, 0, 4);

View File

@@ -32,7 +32,7 @@
using System.Reflection;
// Information about this assembly is defined by the following attributes.
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("DiscImageChef.Server")]
@@ -50,7 +50,7 @@ using System.Reflection;
[assembly: AssemblyVersion("3.99.6.0")]
// The following attributes are used to specify the signing key for the assembly,
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]

View File

@@ -32,7 +32,7 @@
using System.Reflection;
// Information about this assembly is defined by the following attributes.
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("DiscImageChef.Settings")]
@@ -50,7 +50,7 @@ using System.Reflection;
[assembly: AssemblyVersion("3.99.6.0")]
// The following attributes are used to specify the signing key for the assembly,
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]

View File

@@ -28,7 +28,7 @@
using System.Reflection;
// Information about this assembly is defined by the following attributes.
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("DiscImageChef.Tests.Devices")]
@@ -46,7 +46,7 @@ using System.Reflection;
[assembly: AssemblyVersion("1.0.*")]
// The following attributes are used to specify the signing key for the assembly,
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]

View File

@@ -32,7 +32,7 @@
using System.Reflection;
// Information about this assembly is defined by the following attributes.
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("The Disc Image Chef")]
@@ -50,7 +50,7 @@ using System.Reflection;
[assembly: AssemblyVersion("3.99.6.0")]
// The following attributes are used to specify the signing key for the assembly,
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]