diff --git a/DiscImageChef.Helpers/ArrayFill.cs b/DiscImageChef.Helpers/ArrayFill.cs
index 811b33761..122bccda0 100644
--- a/DiscImageChef.Helpers/ArrayFill.cs
+++ b/DiscImageChef.Helpers/ArrayFill.cs
@@ -32,7 +32,7 @@ namespace DiscImageChef
public static partial class ArrayHelpers
{
///
- /// Fills an array with the specified value
+ /// Fills an array with the specified value
///
/// Array
/// Value
@@ -44,7 +44,7 @@ namespace DiscImageChef
}
///
- /// Fills an array with the contents of the specified array
+ /// Fills an array with the contents of the specified array
///
/// Array
/// Value
@@ -53,7 +53,8 @@ namespace DiscImageChef
{
if(destinationArray == null) throw new ArgumentNullException(nameof(destinationArray));
- if(value.Length > destinationArray.Length) throw new ArgumentException("Length of value array must not be more than length of destination");
+ if(value.Length > destinationArray.Length)
+ throw new ArgumentException("Length of value array must not be more than length of destination");
// set the initial array value
Array.Copy(value, destinationArray, value.Length);
@@ -61,13 +62,14 @@ namespace DiscImageChef
int arrayToFillHalfLength = destinationArray.Length / 2;
int copyLength;
- for(copyLength = value.Length; copyLength < arrayToFillHalfLength; copyLength <<= 1) Array.Copy(destinationArray, 0, destinationArray, copyLength, copyLength);
+ for(copyLength = value.Length; copyLength < arrayToFillHalfLength; copyLength <<= 1)
+ Array.Copy(destinationArray, 0, destinationArray, copyLength, copyLength);
Array.Copy(destinationArray, 0, destinationArray, copyLength, destinationArray.Length - copyLength);
}
///
- /// Converts a byte array to its hexadecimal representation
+ /// Converts a byte array to its hexadecimal representation
///
/// Byte array
/// true to use uppercase
diff --git a/DiscImageChef.Helpers/ArrayIsEmpty.cs b/DiscImageChef.Helpers/ArrayIsEmpty.cs
index cec1d9cb8..e22da3767 100644
--- a/DiscImageChef.Helpers/ArrayIsEmpty.cs
+++ b/DiscImageChef.Helpers/ArrayIsEmpty.cs
@@ -37,7 +37,7 @@ namespace DiscImageChef
public static partial class ArrayHelpers
{
///
- /// Checks if an array is null, filled with the NULL byte (0x00) or ASCII whitespace (0x20)
+ /// Checks if an array is null, filled with the NULL byte (0x00) or ASCII whitespace (0x20)
///
/// Array
/// True if null or whitespace
@@ -47,7 +47,7 @@ namespace DiscImageChef
}
///
- /// Checks if an array is null or filled with the NULL byte (0x00)
+ /// Checks if an array is null or filled with the NULL byte (0x00)
///
/// Array
/// True if null
diff --git a/DiscImageChef.Helpers/BigEndianBitConverter.cs b/DiscImageChef.Helpers/BigEndianBitConverter.cs
index 53064d00d..b017ce94d 100644
--- a/DiscImageChef.Helpers/BigEndianBitConverter.cs
+++ b/DiscImageChef.Helpers/BigEndianBitConverter.cs
@@ -36,21 +36,21 @@ using System.Linq;
namespace DiscImageChef
{
///
- /// Converts base data types to an array of bytes, and an array of bytes to base
- /// data types.
- /// All info taken from the meta data of System.BitConverter. This implementation
- /// allows for Endianness consideration.
+ /// Converts base data types to an array of bytes, and an array of bytes to base
+ /// data types.
+ /// All info taken from the meta data of System.BitConverter. This implementation
+ /// allows for Endianness consideration.
///
public static class BigEndianBitConverter
{
///
- /// Indicates the byte order ("endianess") in which data is stored in this computer
- /// architecture.
+ /// Indicates the byte order ("endianess") in which data is stored in this computer
+ /// architecture.
///
public static bool IsLittleEndian { get; set; }
///
- /// Converts the specified double-precision floating point number to a 64-bit signed integer.
+ /// Converts the specified double-precision floating point number to a 64-bit signed integer.
///
/// The number to convert.
/// A 64-bit signed integer whose value is equivalent to value.
@@ -61,7 +61,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified Boolean value as an array of bytes.
+ /// Returns the specified Boolean value as an array of bytes.
///
/// A Boolean value.
/// An array of bytes with length 1.
@@ -71,7 +71,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified Unicode character value as an array of bytes.
+ /// Returns the specified Unicode character value as an array of bytes.
///
/// A character to convert.
/// An array of bytes with length 2.
@@ -81,7 +81,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified double-precision floating point value as an array of bytes.
+ /// Returns the specified double-precision floating point value as an array of bytes.
///
/// The number to convert.
/// An array of bytes with length 8.
@@ -91,7 +91,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified single-precision floating point value as an array of bytes.
+ /// Returns the specified single-precision floating point value as an array of bytes.
///
/// The number to convert.
/// An array of bytes with length 4.
@@ -101,7 +101,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified 32-bit signed integer value as an array of bytes.
+ /// Returns the specified 32-bit signed integer value as an array of bytes.
///
/// The number to convert.
/// An array of bytes with length 4.
@@ -111,7 +111,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified 64-bit signed integer value as an array of bytes.
+ /// Returns the specified 64-bit signed integer value as an array of bytes.
///
/// The number to convert.
/// An array of bytes with length 8.
@@ -121,7 +121,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified 16-bit signed integer value as an array of bytes.
+ /// Returns the specified 16-bit signed integer value as an array of bytes.
///
/// The number to convert.
/// An array of bytes with length 2.
@@ -131,7 +131,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified 32-bit unsigned integer value as an array of bytes.
+ /// Returns the specified 32-bit unsigned integer value as an array of bytes.
///
/// The number to convert.
/// An array of bytes with length 4.
@@ -141,7 +141,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified 64-bit unsigned integer value as an array of bytes.
+ /// Returns the specified 64-bit unsigned integer value as an array of bytes.
///
/// The number to convert.
/// An array of bytes with length 8.
@@ -151,7 +151,7 @@ namespace DiscImageChef
}
///
- /// Returns the specified 16-bit unsigned integer value as an array of bytes.
+ /// Returns the specified 16-bit unsigned integer value as an array of bytes.
///
/// The number to convert.
/// An array of bytes with length 2.
@@ -161,7 +161,7 @@ namespace DiscImageChef
}
///
- /// Converts the specified 64-bit signed integer to a double-precision floating point number.
+ /// Converts the specified 64-bit signed integer to a double-precision floating point number.
///
/// The number to convert.
/// A double-precision floating point number whose value is equivalent to value.
@@ -171,55 +171,71 @@ namespace DiscImageChef
}
///
- /// Returns a Boolean value converted from one byte at a specified position in a byte array.
+ /// Returns a Boolean value converted from one byte at a specified position in a byte array.
///
/// An array of bytes.
/// The starting position within value.
- /// true if the byte at in value is nonzero; otherwise, false.
+ /// true if the byte at in value is nonzero; otherwise, false.
/// value is null.
- /// is less than zero or greater than the length of value minus 1.
+ ///
+ /// is less than zero or greater than the
+ /// length of value minus 1.
+ ///
public static bool ToBoolean(byte[] value, int startIndex)
{
throw new NotImplementedException();
}
///
- /// Returns a Unicode character converted from two bytes at a specified position in a byte array.
+ /// Returns a Unicode character converted from two bytes at a specified position in a byte array.
///
/// An array.
/// The starting position within value.
- /// A character formed by two bytes beginning at .
- /// equals the length of value minus 1.
+ /// A character formed by two bytes beginning at .
+ /// equals the length of value minus 1.
/// value is null.
- /// is less than zero or greater than the length of value minus 1.
+ ///
+ /// is less than zero or greater than the
+ /// length of value minus 1.
+ ///
public static char ToChar(byte[] value, int startIndex)
{
throw new NotImplementedException();
}
///
- /// Returns a double-precision floating point number converted from eight bytes at a specified position in a byte array.
+ /// Returns a double-precision floating point number converted from eight bytes at a specified position in a byte
+ /// array.
///
/// An array of bytes.
/// The starting position within value.
- /// A double precision floating point number formed by eight bytes beginning at .
- /// is greater than or equal to the length of value minus 7, and is less than or equal to the length of value minus 1.
+ /// A double precision floating point number formed by eight bytes beginning at .
+ ///
+ /// is greater than or equal to the length of value
+ /// minus 7, and is less than or equal to the length of value minus 1.
+ ///
/// value is null.
- /// is less than zero or greater than the length of value minus 1.
+ ///
+ /// is less than zero or greater than the
+ /// length of value minus 1.
+ ///
public static double ToDouble(byte[] value, int startIndex)
{
throw new NotImplementedException();
}
///
- /// Returns a 16-bit signed integer converted from two bytes at a specified position in a byte array.
+ /// Returns a 16-bit signed integer converted from two bytes at a specified position in a byte array.
///
/// An array of bytes.
/// The starting position within value.
- /// A 16-bit signed integer formed by two bytes beginning at .
- /// equals the length of value minus 1.
+ /// A 16-bit signed integer formed by two bytes beginning at .
+ /// equals the length of value minus 1.
/// value is null.
- /// startIndex is less than zero or greater than the length of value minus 1.
+ ///
+ /// startIndex is less than zero or greater than the length of value
+ /// minus 1.
+ ///
public static short ToInt16(byte[] value, int startIndex)
{
return !IsLittleEndian
@@ -228,14 +244,20 @@ namespace DiscImageChef
}
///
- /// Returns a 32-bit signed integer converted from four bytes at a specified position in a byte array.
+ /// Returns a 32-bit signed integer converted from four bytes at a specified position in a byte array.
///
/// An array of bytes.
/// The starting position within value.
- /// A 32-bit signed integer formed by four bytes beginning at .
- /// is greater than or equal to the length of value minus 3, and is less than or equal to the length of value minus 1.
+ /// A 32-bit signed integer formed by four bytes beginning at .
+ ///
+ /// is greater than or equal to the length of value
+ /// minus 3, and is less than or equal to the length of value minus 1.
+ ///
/// value is null.
- /// startIndex is less than zero or greater than the length of value minus 1.
+ ///
+ /// startIndex is less than zero or greater than the length of value
+ /// minus 1.
+ ///
public static int ToInt32(byte[] value, int startIndex)
{
return !IsLittleEndian
@@ -244,14 +266,20 @@ namespace DiscImageChef
}
///
- /// Returns a 64-bit signed integer converted from eight bytes at a specified position in a byte array.
+ /// Returns a 64-bit signed integer converted from eight bytes at a specified position in a byte array.
///
/// An array of bytes.
/// The starting position within value.
- /// A 64-bit signed integer formed by eight bytes beginning at .
- /// is greater than or equal to the length of value minus 7, and is less than or equal to the length of value minus 1.
+ /// A 64-bit signed integer formed by eight bytes beginning at .
+ ///
+ /// is greater than or equal to the length of value
+ /// minus 7, and is less than or equal to the length of value minus 1.
+ ///
/// value is null.
- /// is less than zero or greater than the length of value minus 1.
+ ///
+ /// is less than zero or greater than the
+ /// length of value minus 1.
+ ///
public static long ToInt64(byte[] value, int startIndex)
{
return !IsLittleEndian
@@ -260,14 +288,21 @@ namespace DiscImageChef
}
///
- /// Returns a single-precision floating point number converted from four bytes at a specified position in a byte array.
+ /// Returns a single-precision floating point number converted from four bytes at a specified position in a byte
+ /// array.
///
/// An array of bytes.
/// The starting position within value.
- /// A single-precision floating point number formed by four bytes beginning at .
- /// is greater than or equal to the length of value minus 3, and is less than or equal to the length of value minus 1.
+ /// A single-precision floating point number formed by four bytes beginning at .
+ ///
+ /// is greater than or equal to the length of value
+ /// minus 3, and is less than or equal to the length of value minus 1.
+ ///
/// value is null.
- /// is less than zero or greater than the length of value minus 1.
+ ///
+ /// is less than zero or greater than the
+ /// length of value minus 1.
+ ///
public static float ToSingle(byte[] value, int startIndex)
{
return !IsLittleEndian
@@ -276,10 +311,14 @@ namespace DiscImageChef
}
///
- /// Converts the numeric value of each element of a specified array of bytes to its equivalent hexadecimal string representation.
+ /// Converts the numeric value of each element of a specified array of bytes to its equivalent hexadecimal string
+ /// representation.
///
/// An array of bytes.
- /// A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in value; for example, "7F-2C-4A".
+ ///
+ /// A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding
+ /// element in value; for example, "7F-2C-4A".
+ ///
/// value is null.
public static string ToString(byte[] value)
{
@@ -287,13 +326,20 @@ namespace DiscImageChef
}
///
- /// Converts the numeric value of each element of a specified subarray of bytes to its equivalent hexadecimal string representation.
+ /// Converts the numeric value of each element of a specified subarray of bytes to its equivalent hexadecimal string
+ /// representation.
///
/// An array of bytes.
/// The starting position within value.
- /// A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in a subarray of value; for example, "7F-2C-4A".
+ ///
+ /// A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding
+ /// element in a subarray of value; for example, "7F-2C-4A".
+ ///
/// value is null.
- /// startIndex is less than zero or greater than the length of value minus 1.
+ ///
+ /// startIndex is less than zero or greater than the length of value
+ /// minus 1.
+ ///
public static string ToString(byte[] value, int startIndex)
{
return !IsLittleEndian
@@ -302,15 +348,25 @@ namespace DiscImageChef
}
///
- /// Converts the numeric value of each element of a specified subarray of bytes to its equivalent hexadecimal string representation.
+ /// Converts the numeric value of each element of a specified subarray of bytes to its equivalent hexadecimal string
+ /// representation.
///
/// An array of bytes.
/// The starting position within value.
/// The number of array elements in value to convert.
- /// A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding element in a subarray of value; for example, "7F-2C-4A".
+ ///
+ /// A System.String of hexadecimal pairs separated by hyphens, where each pair represents the corresponding
+ /// element in a subarray of value; for example, "7F-2C-4A".
+ ///
/// value is null.
- /// startIndex or length is less than zero. -or- startIndex is greater than zero and is greater than or equal to the length of value.
- /// The combination of startIndex and length does not specify a position within value; that is, the startIndex parameter is greater than the length of value minus the length parameter.
+ ///
+ /// startIndex or length is less than zero. -or- startIndex is greater
+ /// than zero and is greater than or equal to the length of value.
+ ///
+ ///
+ /// The combination of startIndex and length does not specify a position within
+ /// value; that is, the startIndex parameter is greater than the length of value minus the length parameter.
+ ///
public static string ToString(byte[] value, int startIndex, int length)
{
return !IsLittleEndian
@@ -319,14 +375,17 @@ namespace DiscImageChef
}
///
- /// Returns a 16-bit unsigned integer converted from two bytes at a specified position in a byte array.
+ /// Returns a 16-bit unsigned integer converted from two bytes at a specified position in a byte array.
///
/// The array of bytes.
/// The starting position within value.
/// A 16-bit unsigned integer formed by two bytes beginning at startIndex.
/// startIndex equals the length of value minus 1.
/// value is null.
- /// startIndex is less than zero or greater than the length of value minus 1.
+ ///
+ /// startIndex is less than zero or greater than the length of value
+ /// minus 1.
+ ///
public static ushort ToUInt16(byte[] value, int startIndex)
{
return !IsLittleEndian
@@ -335,14 +394,20 @@ namespace DiscImageChef
}
///
- /// Returns a 32-bit unsigned integer converted from four bytes at a specified position in a byte array.
+ /// Returns a 32-bit unsigned integer converted from four bytes at a specified position in a byte array.
///
/// An array of bytes.
/// The starting position within value.
/// A 32-bit unsigned integer formed by four bytes beginning at startIndex.
- /// startIndex is greater than or equal to the length of value minus 3, and is less than or equal to the length of value minus 1.
+ ///
+ /// startIndex is greater than or equal to the length of value minus 3, and is
+ /// less than or equal to the length of value minus 1.
+ ///
/// value is null.
- /// startIndex is less than zero or greater than the length of value minus 1.
+ ///
+ /// startIndex is less than zero or greater than the length of value
+ /// minus 1.
+ ///
public static uint ToUInt32(byte[] value, int startIndex)
{
return !IsLittleEndian
@@ -351,14 +416,20 @@ namespace DiscImageChef
}
///
- /// Returns a 64-bit unsigned integer converted from eight bytes at a specified position in a byte array.
+ /// Returns a 64-bit unsigned integer converted from eight bytes at a specified position in a byte array.
///
/// An array of bytes.
/// The starting position within value.
/// A 64-bit unsigned integer formed by the eight bytes beginning at startIndex.
- /// startIndex is greater than or equal to the length of value minus 7, and is less than or equal to the length of value minus 1.
+ ///
+ /// startIndex is greater than or equal to the length of value minus 7, and is
+ /// less than or equal to the length of value minus 1.
+ ///
/// value is null.
- /// startIndex is less than zero or greater than the length of value minus 1.
+ ///
+ /// startIndex is less than zero or greater than the length of value
+ /// minus 1.
+ ///
public static ulong ToUInt64(byte[] value, int startIndex)
{
return !IsLittleEndian
diff --git a/DiscImageChef.Helpers/BigEndianMarshal.cs b/DiscImageChef.Helpers/BigEndianMarshal.cs
index 0fd5c34a3..8b7f8a95d 100644
--- a/DiscImageChef.Helpers/BigEndianMarshal.cs
+++ b/DiscImageChef.Helpers/BigEndianMarshal.cs
@@ -40,8 +40,8 @@ namespace DiscImageChef
public static class BigEndianMarshal
{
///
- /// Marshals a big endian structure from a byte array.
- /// Nested structures are still marshalled as little endian.
+ /// Marshals a big endian structure from a byte array.
+ /// Nested structures are still marshalled as little endian.
///
/// The structure.
/// Byte array.
@@ -55,8 +55,8 @@ namespace DiscImageChef
}
///
- /// Swaps endian of structure members that correspond to numerical types.
- /// Does not traverse nested structures.
+ /// Swaps endian of structure members that correspond to numerical types.
+ /// Does not traverse nested structures.
///
/// The structure with its members endian swapped.
/// The structure.
diff --git a/DiscImageChef.Helpers/CHS.cs b/DiscImageChef.Helpers/CHS.cs
index 5d696ad67..29f69b35d 100644
--- a/DiscImageChef.Helpers/CHS.cs
+++ b/DiscImageChef.Helpers/CHS.cs
@@ -35,7 +35,7 @@ namespace DiscImageChef.Helpers
public static class CHS
{
///
- /// Converts a CHS position to a LBA one
+ /// Converts a CHS position to a LBA one
///
/// Cylinder
/// Head
diff --git a/DiscImageChef.Helpers/CompareBytes.cs b/DiscImageChef.Helpers/CompareBytes.cs
index f10cf41d6..321ce8f1c 100644
--- a/DiscImageChef.Helpers/CompareBytes.cs
+++ b/DiscImageChef.Helpers/CompareBytes.cs
@@ -35,7 +35,7 @@ namespace DiscImageChef
public static partial class ArrayHelpers
{
///
- /// Compares two byte arrays
+ /// Compares two byte arrays
///
/// true if they are different in any way
/// true if they have the same size
diff --git a/DiscImageChef.Helpers/CountBits.cs b/DiscImageChef.Helpers/CountBits.cs
index 7c899f9ff..3c0b926ca 100644
--- a/DiscImageChef.Helpers/CountBits.cs
+++ b/DiscImageChef.Helpers/CountBits.cs
@@ -35,7 +35,7 @@ namespace DiscImageChef.Helpers
public static class CountBits
{
///
- /// Counts the number of bits set to true in a number
+ /// Counts the number of bits set to true in a number
///
/// Number
/// Bits set to true
diff --git a/DiscImageChef.Helpers/DateHandlers.cs b/DiscImageChef.Helpers/DateHandlers.cs
index 87f0b7105..6014650aa 100644
--- a/DiscImageChef.Helpers/DateHandlers.cs
+++ b/DiscImageChef.Helpers/DateHandlers.cs
@@ -42,13 +42,13 @@ namespace DiscImageChef
static readonly DateTime MacEpoch = new DateTime(1904, 1, 1, 0, 0, 0);
static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0);
///
- /// Day 0 of Julian Date system
+ /// Day 0 of Julian Date system
///
static readonly DateTime JulianEpoch = new DateTime(1858, 11, 17, 0, 0, 0);
static readonly DateTime AmigaEpoch = new DateTime(1978, 1, 1, 0, 0, 0);
///
- /// Converts a Macintosh timestamp to a .NET DateTime
+ /// Converts a Macintosh timestamp to a .NET DateTime
///
/// Macintosh timestamp (seconds since 1st Jan. 1904)
/// .NET DateTime
@@ -58,7 +58,7 @@ namespace DiscImageChef
}
///
- /// Converts a Lisa timestamp to a .NET DateTime
+ /// Converts a Lisa timestamp to a .NET DateTime
///
/// Lisa timestamp (seconds since 1st Jan. 1901)
/// .NET DateTime
@@ -68,7 +68,7 @@ namespace DiscImageChef
}
///
- /// Converts a UNIX timestamp to a .NET DateTime
+ /// Converts a UNIX timestamp to a .NET DateTime
///
/// UNIX timestamp (seconds since 1st Jan. 1970)
/// .NET DateTime
@@ -78,7 +78,7 @@ namespace DiscImageChef
}
///
- /// Converts a UNIX timestamp to a .NET DateTime
+ /// Converts a UNIX timestamp to a .NET DateTime
///
/// UNIX timestamp (seconds since 1st Jan. 1970)
/// .NET DateTime
@@ -88,7 +88,7 @@ namespace DiscImageChef
}
///
- /// Converts a UNIX timestamp to a .NET DateTime
+ /// Converts a UNIX timestamp to a .NET DateTime
///
/// UNIX timestamp (seconds since 1st Jan. 1970)
/// .NET DateTime
@@ -98,7 +98,7 @@ namespace DiscImageChef
}
///
- /// Converts a UNIX timestamp to a .NET DateTime
+ /// Converts a UNIX timestamp to a .NET DateTime
///
/// Seconds since 1st Jan. 1970)
/// Nanoseconds
@@ -109,7 +109,7 @@ namespace DiscImageChef
}
///
- /// Converts a UNIX timestamp to a .NET DateTime
+ /// Converts a UNIX timestamp to a .NET DateTime
///
/// UNIX timestamp (seconds since 1st Jan. 1970)
/// .NET DateTime
@@ -119,7 +119,7 @@ namespace DiscImageChef
}
///
- /// Converts a High Sierra Format timestamp to a .NET DateTime
+ /// Converts a High Sierra Format timestamp to a .NET DateTime
///
/// High Sierra Format timestamp
/// .NET DateTime
@@ -132,7 +132,7 @@ namespace DiscImageChef
// TODO: Timezone
///
- /// Converts an ISO9660 timestamp to a .NET DateTime
+ /// Converts an ISO9660 timestamp to a .NET DateTime
///
/// ISO9660 timestamp
/// .NET DateTime
@@ -183,7 +183,8 @@ namespace DiscImageChef
twocharvalue[1] = vdDateTime[15];
DicConsole.DebugWriteLine("ISO9600ToDateTime handler", "hundredths = \"{0}\"",
StringHandlers.CToString(twocharvalue, Encoding.ASCII));
- if(!int.TryParse(StringHandlers.CToString(twocharvalue, Encoding.ASCII), out int hundredths)) hundredths = 0;
+ if(!int.TryParse(StringHandlers.CToString(twocharvalue, Encoding.ASCII), out int hundredths))
+ hundredths = 0;
DicConsole.DebugWriteLine("ISO9600ToDateTime handler",
"decodedDT = new DateTime({0}, {1}, {2}, {3}, {4}, {5}, {6}, DateTimeKind.Unspecified);",
@@ -195,7 +196,7 @@ namespace DiscImageChef
}
///
- /// Converts a VMS timestamp to a .NET DateTime
+ /// Converts a VMS timestamp to a .NET DateTime
///
/// VMS timestamp (tenths of microseconds since day 0 of the Julian Date)
/// .NET DateTime
@@ -207,7 +208,7 @@ namespace DiscImageChef
}
///
- /// Converts an Amiga timestamp to a .NET DateTime
+ /// Converts an Amiga timestamp to a .NET DateTime
///
/// Days since the 1st Jan. 1978
/// Minutes since o'clock
@@ -221,7 +222,7 @@ namespace DiscImageChef
}
///
- /// Converts an UCSD Pascal timestamp to a .NET DateTime
+ /// Converts an UCSD Pascal timestamp to a .NET DateTime
///
/// UCSD Pascal timestamp
/// .NET DateTime
@@ -238,7 +239,7 @@ namespace DiscImageChef
}
///
- /// Converts a DOS timestamp to a .NET DateTime
+ /// Converts a DOS timestamp to a .NET DateTime
///
/// Date
/// Time
@@ -266,7 +267,7 @@ namespace DiscImageChef
}
///
- /// Converts a CP/M timestamp to .NET DateTime
+ /// Converts a CP/M timestamp to .NET DateTime
///
/// CP/M timestamp
/// .NET DateTime
@@ -284,7 +285,7 @@ namespace DiscImageChef
}
///
- /// Converts an ECMA timestamp to a .NET DateTime
+ /// Converts an ECMA timestamp to a .NET DateTime
///
/// Timezone
/// Year
@@ -322,7 +323,7 @@ namespace DiscImageChef
}
///
- /// Convers a Solaris high resolution timestamp to .NET DateTime
+ /// Convers a Solaris high resolution timestamp to .NET DateTime
///
/// Solaris high resolution timestamp
/// .NET DateTime
@@ -332,7 +333,7 @@ namespace DiscImageChef
}
///
- /// Converts an OS-9 timestamp to .NET DateTime
+ /// Converts an OS-9 timestamp to .NET DateTime
///
/// OS-9 timestamp
/// .NET DateTime
@@ -354,7 +355,7 @@ namespace DiscImageChef
}
///
- /// Converts a LIF timestamp to .NET DateTime
+ /// Converts a LIF timestamp to .NET DateTime
///
/// LIF timestamp
/// .NET DateTime
@@ -366,7 +367,7 @@ namespace DiscImageChef
}
///
- /// Converts a LIF timestamp to .NET DateTime
+ /// Converts a LIF timestamp to .NET DateTime
///
/// Yer
/// Month
diff --git a/DiscImageChef.Helpers/Extents/ExtentsByte.cs b/DiscImageChef.Helpers/Extents/ExtentsByte.cs
index bd0e7b188..7d52a69a9 100644
--- a/DiscImageChef.Helpers/Extents/ExtentsByte.cs
+++ b/DiscImageChef.Helpers/Extents/ExtentsByte.cs
@@ -37,14 +37,14 @@ using System.Linq;
namespace Extents
{
///
- /// Implements extents for
+ /// Implements extents for
///
public class ExtentsByte
{
List> backend;
///
- /// Initialize an empty list of extents
+ /// Initialize an empty list of extents
///
public ExtentsByte()
{
@@ -52,7 +52,7 @@ namespace Extents
}
///
- /// Initializes extents with an specific list
+ /// Initializes extents with an specific list
///
/// List of extents as tuples "start, end"
public ExtentsByte(IEnumerable> list)
@@ -61,12 +61,12 @@ namespace Extents
}
///
- /// Gets a count of how many extents are stored
+ /// Gets a count of how many extents are stored
///
public int Count => backend.Count;
///
- /// Adds the specified number to the corresponding extent, or creates a new one
+ /// Adds the specified number to the corresponding extent, or creates a new one
///
///
public void Add(byte item)
@@ -123,11 +123,14 @@ namespace Extents
}
///
- /// Adds a new extent
+ /// Adds a new extent
///
/// First element of the extent
- /// Last element of the extent or if is true how many elements the extent runs for
- /// If set to true, indicates how many elements the extent runs for
+ ///
+ /// Last element of the extent or if is true how many elements the extent runs
+ /// for
+ ///
+ /// If set to true, indicates how many elements the extent runs for
public void Add(byte start, byte end, bool run = false)
{
byte realEnd;
@@ -139,7 +142,7 @@ namespace Extents
}
///
- /// Checks if the specified item is contained by an extent on this instance
+ /// Checks if the specified item is contained by an extent on this instance
///
/// Item to seach for
/// true if any of the extents on this instance contains the item
@@ -149,7 +152,7 @@ namespace Extents
}
///
- /// Removes all extents from this instance
+ /// Removes all extents from this instance
///
public void Clear()
{
@@ -157,7 +160,7 @@ namespace Extents
}
///
- /// Removes an item from the extents in this instance
+ /// Removes an item from the extents in this instance
///
/// Item to remove
/// true if the item was contained in a known extent and removed, false otherwise
@@ -215,16 +218,17 @@ namespace Extents
}
///
- /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is last element
+ /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is
+ /// last element
///
- /// Array of
+ /// Array of
public Tuple[] ToArray()
{
return backend.ToArray();
}
///
- /// Gets the first element of the extent that contains the specified item
+ /// Gets the first element of the extent that contains the specified item
///
/// Item
/// First element of extent
@@ -232,7 +236,8 @@ namespace Extents
public bool GetStart(byte item, out byte start)
{
start = 0;
- foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2)) {
+ foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2))
+ {
start = extent.Item1;
return true;
}
diff --git a/DiscImageChef.Helpers/Extents/ExtentsInt.cs b/DiscImageChef.Helpers/Extents/ExtentsInt.cs
index d41300106..8d4006347 100644
--- a/DiscImageChef.Helpers/Extents/ExtentsInt.cs
+++ b/DiscImageChef.Helpers/Extents/ExtentsInt.cs
@@ -37,14 +37,14 @@ using System.Linq;
namespace Extents
{
///
- /// Implements extents for
+ /// Implements extents for
///
public class ExtentsInt
{
List> backend;
///
- /// Initialize an empty list of extents
+ /// Initialize an empty list of extents
///
public ExtentsInt()
{
@@ -52,7 +52,7 @@ namespace Extents
}
///
- /// Initializes extents with an specific list
+ /// Initializes extents with an specific list
///
/// List of extents as tuples "start, end"
public ExtentsInt(IEnumerable> list)
@@ -61,12 +61,12 @@ namespace Extents
}
///
- /// Gets a count of how many extents are stored
+ /// Gets a count of how many extents are stored
///
public int Count => backend.Count;
///
- /// Adds the specified number to the corresponding extent, or creates a new one
+ /// Adds the specified number to the corresponding extent, or creates a new one
///
///
public void Add(int item)
@@ -123,11 +123,14 @@ namespace Extents
}
///
- /// Adds a new extent
+ /// Adds a new extent
///
/// First element of the extent
- /// Last element of the extent or if is true how many elements the extent runs for
- /// If set to true, indicates how many elements the extent runs for
+ ///
+ /// Last element of the extent or if is true how many elements the extent runs
+ /// for
+ ///
+ /// If set to true, indicates how many elements the extent runs for
public void Add(int start, int end, bool run = false)
{
int realEnd;
@@ -139,7 +142,7 @@ namespace Extents
}
///
- /// Checks if the specified item is contained by an extent on this instance
+ /// Checks if the specified item is contained by an extent on this instance
///
/// Item to seach for
/// true if any of the extents on this instance contains the item
@@ -149,7 +152,7 @@ namespace Extents
}
///
- /// Removes all extents from this instance
+ /// Removes all extents from this instance
///
public void Clear()
{
@@ -157,7 +160,7 @@ namespace Extents
}
///
- /// Removes an item from the extents in this instance
+ /// Removes an item from the extents in this instance
///
/// Item to remove
/// true if the item was contained in a known extent and removed, false otherwise
@@ -215,16 +218,17 @@ namespace Extents
}
///
- /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is last element
+ /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is
+ /// last element
///
- /// Array of
+ /// Array of
public Tuple[] ToArray()
{
return backend.ToArray();
}
///
- /// Gets the first element of the extent that contains the specified item
+ /// Gets the first element of the extent that contains the specified item
///
/// Item
/// First element of extent
@@ -232,7 +236,8 @@ namespace Extents
public bool GetStart(int item, out int start)
{
start = 0;
- foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2)) {
+ foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2))
+ {
start = extent.Item1;
return true;
}
diff --git a/DiscImageChef.Helpers/Extents/ExtentsLong.cs b/DiscImageChef.Helpers/Extents/ExtentsLong.cs
index b293e822f..b70c85a98 100644
--- a/DiscImageChef.Helpers/Extents/ExtentsLong.cs
+++ b/DiscImageChef.Helpers/Extents/ExtentsLong.cs
@@ -37,14 +37,14 @@ using System.Linq;
namespace Extents
{
///
- /// Implements extents for
+ /// Implements extents for
///
public class ExtentsLong
{
List> backend;
///
- /// Initialize an empty list of extents
+ /// Initialize an empty list of extents
///
public ExtentsLong()
{
@@ -52,7 +52,7 @@ namespace Extents
}
///
- /// Initializes extents with an specific list
+ /// Initializes extents with an specific list
///
/// List of extents as tuples "start, end"
public ExtentsLong(IEnumerable> list)
@@ -61,12 +61,12 @@ namespace Extents
}
///
- /// Gets a count of how many extents are stored
+ /// Gets a count of how many extents are stored
///
public int Count => backend.Count;
///
- /// Adds the specified number to the corresponding extent, or creates a new one
+ /// Adds the specified number to the corresponding extent, or creates a new one
///
///
public void Add(long item)
@@ -123,11 +123,14 @@ namespace Extents
}
///
- /// Adds a new extent
+ /// Adds a new extent
///
/// First element of the extent
- /// Last element of the extent or if is true how many elements the extent runs for
- /// If set to true, indicates how many elements the extent runs for
+ ///
+ /// Last element of the extent or if is true how many elements the extent runs
+ /// for
+ ///
+ /// If set to true, indicates how many elements the extent runs for
public void Add(long start, long end, bool run = false)
{
long realEnd;
@@ -139,7 +142,7 @@ namespace Extents
}
///
- /// Checks if the specified item is contained by an extent on this instance
+ /// Checks if the specified item is contained by an extent on this instance
///
/// Item to seach for
/// true if any of the extents on this instance contains the item
@@ -149,7 +152,7 @@ namespace Extents
}
///
- /// Removes all extents from this instance
+ /// Removes all extents from this instance
///
public void Clear()
{
@@ -157,7 +160,7 @@ namespace Extents
}
///
- /// Removes an item from the extents in this instance
+ /// Removes an item from the extents in this instance
///
/// Item to remove
/// true if the item was contained in a known extent and removed, false otherwise
@@ -215,16 +218,17 @@ namespace Extents
}
///
- /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is last element
+ /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is
+ /// last element
///
- /// Array of
+ /// Array of
public Tuple[] ToArray()
{
return backend.ToArray();
}
///
- /// Gets the first element of the extent that contains the specified item
+ /// Gets the first element of the extent that contains the specified item
///
/// Item
/// First element of extent
@@ -232,7 +236,8 @@ namespace Extents
public bool GetStart(long item, out long start)
{
start = 0;
- foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2)) {
+ foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2))
+ {
start = extent.Item1;
return true;
}
diff --git a/DiscImageChef.Helpers/Extents/ExtentsSByte.cs b/DiscImageChef.Helpers/Extents/ExtentsSByte.cs
index ef52740df..b7479683d 100644
--- a/DiscImageChef.Helpers/Extents/ExtentsSByte.cs
+++ b/DiscImageChef.Helpers/Extents/ExtentsSByte.cs
@@ -37,14 +37,14 @@ using System.Linq;
namespace Extents
{
///
- /// Implements extents for
+ /// Implements extents for
///
public class ExtentsSByte
{
List> backend;
///
- /// Initialize an empty list of extents
+ /// Initialize an empty list of extents
///
public ExtentsSByte()
{
@@ -52,7 +52,7 @@ namespace Extents
}
///
- /// Initializes extents with an specific list
+ /// Initializes extents with an specific list
///
/// List of extents as tuples "start, end"
public ExtentsSByte(IEnumerable> list)
@@ -61,12 +61,12 @@ namespace Extents
}
///
- /// Gets a count of how many extents are stored
+ /// Gets a count of how many extents are stored
///
public int Count => backend.Count;
///
- /// Adds the specified number to the corresponding extent, or creates a new one
+ /// Adds the specified number to the corresponding extent, or creates a new one
///
///
public void Add(sbyte item)
@@ -123,11 +123,14 @@ namespace Extents
}
///
- /// Adds a new extent
+ /// Adds a new extent
///
/// First element of the extent
- /// Last element of the extent or if is true how many elements the extent runs for
- /// If set to true, indicates how many elements the extent runs for
+ ///
+ /// Last element of the extent or if is true how many elements the extent runs
+ /// for
+ ///
+ /// If set to true, indicates how many elements the extent runs for
public void Add(sbyte start, sbyte end, bool run = false)
{
sbyte realEnd;
@@ -139,7 +142,7 @@ namespace Extents
}
///
- /// Checks if the specified item is contained by an extent on this instance
+ /// Checks if the specified item is contained by an extent on this instance
///
/// Item to seach for
/// true if any of the extents on this instance contains the item
@@ -149,7 +152,7 @@ namespace Extents
}
///
- /// Removes all extents from this instance
+ /// Removes all extents from this instance
///
public void Clear()
{
@@ -157,7 +160,7 @@ namespace Extents
}
///
- /// Removes an item from the extents in this instance
+ /// Removes an item from the extents in this instance
///
/// Item to remove
/// true if the item was contained in a known extent and removed, false otherwise
@@ -215,16 +218,17 @@ namespace Extents
}
///
- /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is last element
+ /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is
+ /// last element
///
- /// Array of
+ /// Array of
public Tuple[] ToArray()
{
return backend.ToArray();
}
///
- /// Gets the first element of the extent that contains the specified item
+ /// Gets the first element of the extent that contains the specified item
///
/// Item
/// First element of extent
@@ -232,7 +236,8 @@ namespace Extents
public bool GetStart(sbyte item, out sbyte start)
{
start = 0;
- foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2)) {
+ foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2))
+ {
start = extent.Item1;
return true;
}
diff --git a/DiscImageChef.Helpers/Extents/ExtentsShort.cs b/DiscImageChef.Helpers/Extents/ExtentsShort.cs
index 7c47deeb8..0a26ee0b5 100644
--- a/DiscImageChef.Helpers/Extents/ExtentsShort.cs
+++ b/DiscImageChef.Helpers/Extents/ExtentsShort.cs
@@ -37,14 +37,14 @@ using System.Linq;
namespace Extents
{
///
- /// Implements extents for
+ /// Implements extents for
///
public class ExtentsShort
{
List> backend;
///
- /// Initialize an empty list of extents
+ /// Initialize an empty list of extents
///
public ExtentsShort()
{
@@ -52,7 +52,7 @@ namespace Extents
}
///
- /// Initializes extents with an specific list
+ /// Initializes extents with an specific list
///
/// List of extents as tuples "start, end"
public ExtentsShort(IEnumerable> list)
@@ -61,12 +61,12 @@ namespace Extents
}
///
- /// Gets a count of how many extents are stored
+ /// Gets a count of how many extents are stored
///
public int Count => backend.Count;
///
- /// Adds the specified number to the corresponding extent, or creates a new one
+ /// Adds the specified number to the corresponding extent, or creates a new one
///
///
public void Add(short item)
@@ -123,11 +123,14 @@ namespace Extents
}
///
- /// Adds a new extent
+ /// Adds a new extent
///
/// First element of the extent
- /// Last element of the extent or if is true how many elements the extent runs for
- /// If set to true, indicates how many elements the extent runs for
+ ///
+ /// Last element of the extent or if is true how many elements the extent runs
+ /// for
+ ///
+ /// If set to true, indicates how many elements the extent runs for
public void Add(short start, short end, bool run = false)
{
short realEnd;
@@ -139,7 +142,7 @@ namespace Extents
}
///
- /// Checks if the specified item is contained by an extent on this instance
+ /// Checks if the specified item is contained by an extent on this instance
///
/// Item to seach for
/// true if any of the extents on this instance contains the item
@@ -149,7 +152,7 @@ namespace Extents
}
///
- /// Removes all extents from this instance
+ /// Removes all extents from this instance
///
public void Clear()
{
@@ -157,7 +160,7 @@ namespace Extents
}
///
- /// Removes an item from the extents in this instance
+ /// Removes an item from the extents in this instance
///
/// Item to remove
/// true if the item was contained in a known extent and removed, false otherwise
@@ -215,16 +218,17 @@ namespace Extents
}
///
- /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is last element
+ /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is
+ /// last element
///
- /// Array of
+ /// Array of
public Tuple[] ToArray()
{
return backend.ToArray();
}
///
- /// Gets the first element of the extent that contains the specified item
+ /// Gets the first element of the extent that contains the specified item
///
/// Item
/// First element of extent
@@ -232,7 +236,8 @@ namespace Extents
public bool GetStart(short item, out short start)
{
start = 0;
- foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2)) {
+ foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2))
+ {
start = extent.Item1;
return true;
}
diff --git a/DiscImageChef.Helpers/Extents/ExtentsUInt.cs b/DiscImageChef.Helpers/Extents/ExtentsUInt.cs
index 6ba26e927..874173c0a 100644
--- a/DiscImageChef.Helpers/Extents/ExtentsUInt.cs
+++ b/DiscImageChef.Helpers/Extents/ExtentsUInt.cs
@@ -37,14 +37,14 @@ using System.Linq;
namespace Extents
{
///
- /// Implements extents for
+ /// Implements extents for
///
public class ExtentsUInt
{
List> backend;
///
- /// Initialize an empty list of extents
+ /// Initialize an empty list of extents
///
public ExtentsUInt()
{
@@ -52,7 +52,7 @@ namespace Extents
}
///
- /// Initializes extents with an specific list
+ /// Initializes extents with an specific list
///
/// List of extents as tuples "start, end"
public ExtentsUInt(IEnumerable> list)
@@ -61,12 +61,12 @@ namespace Extents
}
///
- /// Gets a count of how many extents are stored
+ /// Gets a count of how many extents are stored
///
public int Count => backend.Count;
///
- /// Adds the specified number to the corresponding extent, or creates a new one
+ /// Adds the specified number to the corresponding extent, or creates a new one
///
///
public void Add(uint item)
@@ -123,11 +123,14 @@ namespace Extents
}
///
- /// Adds a new extent
+ /// Adds a new extent
///
/// First element of the extent
- /// Last element of the extent or if is true how many elements the extent runs for
- /// If set to true, indicates how many elements the extent runs for
+ ///
+ /// Last element of the extent or if is true how many elements the extent runs
+ /// for
+ ///
+ /// If set to true, indicates how many elements the extent runs for
public void Add(uint start, uint end, bool run = false)
{
uint realEnd;
@@ -139,7 +142,7 @@ namespace Extents
}
///
- /// Checks if the specified item is contained by an extent on this instance
+ /// Checks if the specified item is contained by an extent on this instance
///
/// Item to seach for
/// true if any of the extents on this instance contains the item
@@ -149,7 +152,7 @@ namespace Extents
}
///
- /// Removes all extents from this instance
+ /// Removes all extents from this instance
///
public void Clear()
{
@@ -157,7 +160,7 @@ namespace Extents
}
///
- /// Removes an item from the extents in this instance
+ /// Removes an item from the extents in this instance
///
/// Item to remove
/// true if the item was contained in a known extent and removed, false otherwise
@@ -215,16 +218,17 @@ namespace Extents
}
///
- /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is last element
+ /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is
+ /// last element
///
- /// Array of
+ /// Array of
public Tuple[] ToArray()
{
return backend.ToArray();
}
///
- /// Gets the first element of the extent that contains the specified item
+ /// Gets the first element of the extent that contains the specified item
///
/// Item
/// First element of extent
@@ -232,7 +236,8 @@ namespace Extents
public bool GetStart(uint item, out uint start)
{
start = 0;
- foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2)) {
+ foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2))
+ {
start = extent.Item1;
return true;
}
diff --git a/DiscImageChef.Helpers/Extents/ExtentsULong.cs b/DiscImageChef.Helpers/Extents/ExtentsULong.cs
index 60e5813a7..71a82200c 100644
--- a/DiscImageChef.Helpers/Extents/ExtentsULong.cs
+++ b/DiscImageChef.Helpers/Extents/ExtentsULong.cs
@@ -37,14 +37,14 @@ using System.Linq;
namespace Extents
{
///
- /// Implements extents for
+ /// Implements extents for
///
public class ExtentsULong
{
List> backend;
///
- /// Initialize an empty list of extents
+ /// Initialize an empty list of extents
///
public ExtentsULong()
{
@@ -52,7 +52,7 @@ namespace Extents
}
///
- /// Initializes extents with an specific list
+ /// Initializes extents with an specific list
///
/// List of extents as tuples "start, end"
public ExtentsULong(IEnumerable> list)
@@ -61,12 +61,12 @@ namespace Extents
}
///
- /// Gets a count of how many extents are stored
+ /// Gets a count of how many extents are stored
///
public int Count => backend.Count;
///
- /// Adds the specified number to the corresponding extent, or creates a new one
+ /// Adds the specified number to the corresponding extent, or creates a new one
///
///
public void Add(ulong item)
@@ -123,11 +123,14 @@ namespace Extents
}
///
- /// Adds a new extent
+ /// Adds a new extent
///
/// First element of the extent
- /// Last element of the extent or if is true how many elements the extent runs for
- /// If set to true, indicates how many elements the extent runs for
+ ///
+ /// Last element of the extent or if is true how many elements the extent runs
+ /// for
+ ///
+ /// If set to true, indicates how many elements the extent runs for
public void Add(ulong start, ulong end, bool run = false)
{
ulong realEnd;
@@ -139,7 +142,7 @@ namespace Extents
}
///
- /// Checks if the specified item is contained by an extent on this instance
+ /// Checks if the specified item is contained by an extent on this instance
///
/// Item to seach for
/// true if any of the extents on this instance contains the item
@@ -149,7 +152,7 @@ namespace Extents
}
///
- /// Removes all extents from this instance
+ /// Removes all extents from this instance
///
public void Clear()
{
@@ -157,7 +160,7 @@ namespace Extents
}
///
- /// Removes an item from the extents in this instance
+ /// Removes an item from the extents in this instance
///
/// Item to remove
/// true if the item was contained in a known extent and removed, false otherwise
@@ -215,16 +218,17 @@ namespace Extents
}
///
- /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is last element
+ /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is
+ /// last element
///
- /// Array of
+ /// Array of
public Tuple[] ToArray()
{
return backend.ToArray();
}
///
- /// Gets the first element of the extent that contains the specified item
+ /// Gets the first element of the extent that contains the specified item
///
/// Item
/// First element of extent
@@ -232,7 +236,8 @@ namespace Extents
public bool GetStart(ulong item, out ulong start)
{
start = 0;
- foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2)) {
+ foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2))
+ {
start = extent.Item1;
return true;
}
diff --git a/DiscImageChef.Helpers/Extents/ExtentsUShort.cs b/DiscImageChef.Helpers/Extents/ExtentsUShort.cs
index bf01658a9..fa6122c1f 100644
--- a/DiscImageChef.Helpers/Extents/ExtentsUShort.cs
+++ b/DiscImageChef.Helpers/Extents/ExtentsUShort.cs
@@ -37,14 +37,14 @@ using System.Linq;
namespace Extents
{
///
- /// Implements extents for
+ /// Implements extents for
///
public class ExtentsUShort
{
List> backend;
///
- /// Initialize an empty list of extents
+ /// Initialize an empty list of extents
///
public ExtentsUShort()
{
@@ -52,7 +52,7 @@ namespace Extents
}
///
- /// Initializes extents with an specific list
+ /// Initializes extents with an specific list
///
/// List of extents as tuples "start, end"
public ExtentsUShort(IEnumerable> list)
@@ -61,12 +61,12 @@ namespace Extents
}
///
- /// Gets a count of how many extents are stored
+ /// Gets a count of how many extents are stored
///
public int Count => backend.Count;
///
- /// Adds the specified number to the corresponding extent, or creates a new one
+ /// Adds the specified number to the corresponding extent, or creates a new one
///
///
public void Add(ushort item)
@@ -123,11 +123,14 @@ namespace Extents
}
///
- /// Adds a new extent
+ /// Adds a new extent
///
/// First element of the extent
- /// Last element of the extent or if is true how many elements the extent runs for
- /// If set to true, indicates how many elements the extent runs for
+ ///
+ /// Last element of the extent or if is true how many elements the extent runs
+ /// for
+ ///
+ /// If set to true, indicates how many elements the extent runs for
public void Add(ushort start, ushort end, bool run = false)
{
ushort realEnd;
@@ -139,7 +142,7 @@ namespace Extents
}
///
- /// Checks if the specified item is contained by an extent on this instance
+ /// Checks if the specified item is contained by an extent on this instance
///
/// Item to seach for
/// true if any of the extents on this instance contains the item
@@ -149,7 +152,7 @@ namespace Extents
}
///
- /// Removes all extents from this instance
+ /// Removes all extents from this instance
///
public void Clear()
{
@@ -157,7 +160,7 @@ namespace Extents
}
///
- /// Removes an item from the extents in this instance
+ /// Removes an item from the extents in this instance
///
/// Item to remove
/// true if the item was contained in a known extent and removed, false otherwise
@@ -215,16 +218,17 @@ namespace Extents
}
///
- /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is last element
+ /// Converts the list of extents to an array of where T1 is first element of the extent and T2 is
+ /// last element
///
- /// Array of
+ /// Array of
public Tuple[] ToArray()
{
return backend.ToArray();
}
///
- /// Gets the first element of the extent that contains the specified item
+ /// Gets the first element of the extent that contains the specified item
///
/// Item
/// First element of extent
@@ -232,7 +236,9 @@ namespace Extents
public bool GetStart(ushort item, out ushort start)
{
start = 0;
- foreach(Tuple extent in backend.Where(extent => item >= extent.Item1 && item <= extent.Item2)) {
+ foreach(Tuple extent in
+ backend.Where(extent => item >= extent.Item1 && item <= extent.Item2))
+ {
start = extent.Item1;
return true;
}
diff --git a/DiscImageChef.Helpers/PrintHex.cs b/DiscImageChef.Helpers/PrintHex.cs
index 1d2024386..0cd4f144b 100644
--- a/DiscImageChef.Helpers/PrintHex.cs
+++ b/DiscImageChef.Helpers/PrintHex.cs
@@ -38,7 +38,7 @@ namespace DiscImageChef
public static class PrintHex
{
///
- /// Prints a byte array as hexadecimal values to the console
+ /// Prints a byte array as hexadecimal values to the console
///
/// Array
/// Width of line
@@ -48,7 +48,7 @@ namespace DiscImageChef
}
///
- /// Prints a byte array as hexadecimal values to a string
+ /// Prints a byte array as hexadecimal values to a string
///
/// Array
/// Width of line
diff --git a/DiscImageChef.Helpers/StringHandlers.cs b/DiscImageChef.Helpers/StringHandlers.cs
index 356568b5d..8ab0e350f 100644
--- a/DiscImageChef.Helpers/StringHandlers.cs
+++ b/DiscImageChef.Helpers/StringHandlers.cs
@@ -38,7 +38,7 @@ namespace DiscImageChef
public static class StringHandlers
{
///
- /// Converts a null-terminated (aka C string) ASCII byte array to a C# string
+ /// Converts a null-terminated (aka C string) ASCII byte array to a C# string
///
/// The corresponding C# string
/// A null-terminated (aka C string) ASCII byte array
@@ -48,7 +48,7 @@ namespace DiscImageChef
}
///
- /// Converts a null-terminated (aka C string) byte array with the specified encoding to a C# string
+ /// Converts a null-terminated (aka C string) byte array with the specified encoding to a C# string
///
/// The corresponding C# string
/// A null-terminated (aka C string) byte array in the specified encoding
@@ -86,7 +86,7 @@ namespace DiscImageChef
}
///
- /// Converts a length-prefixed (aka Pascal string) ASCII byte array to a C# string
+ /// Converts a length-prefixed (aka Pascal string) ASCII byte array to a C# string
///
/// The corresponding C# string
/// A length-prefixed (aka Pascal string) ASCII byte array
@@ -96,7 +96,7 @@ namespace DiscImageChef
}
///
- /// Converts a length-prefixed (aka Pascal string) ASCII byte array to a C# string
+ /// Converts a length-prefixed (aka Pascal string) ASCII byte array to a C# string
///
/// The corresponding C# string
/// A length-prefixed (aka Pascal string) ASCII byte array
@@ -123,7 +123,7 @@ namespace DiscImageChef
}
///
- /// Converts a space (' ', 0x20, ASCII SPACE) padded ASCII byte array to a C# string
+ /// Converts a space (' ', 0x20, ASCII SPACE) padded ASCII byte array to a C# string
///
/// The corresponding C# string
/// A space (' ', 0x20, ASCII SPACE) padded ASCII byte array
@@ -133,7 +133,7 @@ namespace DiscImageChef
}
///
- /// Converts a space (' ', 0x20, ASCII SPACE) padded ASCII byte array to a C# string
+ /// Converts a space (' ', 0x20, ASCII SPACE) padded ASCII byte array to a C# string
///
/// The corresponding C# string
/// A space (' ', 0x20, ASCII SPACE) padded ASCII byte array
@@ -159,7 +159,7 @@ namespace DiscImageChef
}
///
- /// Converts an OSTA compressed unicode byte array to a C# string
+ /// Converts an OSTA compressed unicode byte array to a C# string
///
/// The C# string.
/// OSTA compressed unicode byte array.
diff --git a/DiscImageChef.Helpers/Swapping.cs b/DiscImageChef.Helpers/Swapping.cs
index 75fb4d36f..75bec257e 100644
--- a/DiscImageChef.Helpers/Swapping.cs
+++ b/DiscImageChef.Helpers/Swapping.cs
@@ -118,12 +118,12 @@ namespace DiscImageChef
public static ushort Swap(ushort x)
{
- return (ushort) ((x << 8) | (x >> 8));
+ return (ushort)((x << 8) | (x >> 8));
}
public static short Swap(short x)
{
- return (short) ((x << 8) | ((x >> 8) & 0xFF));
+ return (short)((x << 8) | ((x >> 8) & 0xFF));
}
public static uint Swap(uint x)
@@ -134,8 +134,8 @@ namespace DiscImageChef
public static int Swap(int x)
{
- x = (int) (((x << 8) & 0xFF00FF00) | (((uint) x >> 8) & 0xFF00FF));
- return (int) (((uint) x << 16) | (((uint) x >> 16) & 0xFFFF));
+ x = (int)(((x << 8) & 0xFF00FF00) | (((uint)x >> 8) & 0xFF00FF));
+ return (int)(((uint)x << 16) | (((uint)x >> 16) & 0xFFFF));
}
}
}
\ No newline at end of file