General code refactor and reformat.

This commit is contained in:
2018-12-31 13:17:27 +00:00
parent 6b12cd1a8e
commit f2caa8c40f
413 changed files with 3554 additions and 6549 deletions

View File

@@ -152,10 +152,8 @@ namespace DiscImageChef.Checksums
/// </summary>
/// <param name="filename">File path.</param>
/// <param name="hash">Byte array of the hash value.</param>
public static string File(string filename, out byte[] hash)
{
return File(filename, out hash, CRC32_ISO_POLY, CRC32_ISO_SEED);
}
public static string File(string filename, out byte[] hash) =>
File(filename, out hash, CRC32_ISO_POLY, CRC32_ISO_SEED);
/// <summary>
/// Gets the hash of a file in hexadecimal and as a byte array.
@@ -203,10 +201,8 @@ namespace DiscImageChef.Checksums
/// <param name="data">Data buffer.</param>
/// <param name="len">Length of the data buffer to hash.</param>
/// <param name="hash">Byte array of the hash value.</param>
public static string Data(byte[] data, uint len, out byte[] hash)
{
return Data(data, len, out hash, CRC32_ISO_POLY, CRC32_ISO_SEED);
}
public static string Data(byte[] data, uint len, out byte[] hash) =>
Data(data, len, out hash, CRC32_ISO_POLY, CRC32_ISO_SEED);
/// <summary>
/// Gets the hash of the specified data buffer.
@@ -252,9 +248,6 @@ namespace DiscImageChef.Checksums
/// </summary>
/// <param name="data">Data buffer.</param>
/// <param name="hash">Byte array of the hash value.</param>
public static string Data(byte[] data, out byte[] hash)
{
return Data(data, (uint)data.Length, out hash);
}
public static string Data(byte[] data, out byte[] hash) => Data(data, (uint)data.Length, out hash);
}
}