mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: All refactor in DiscImageChef.Helpers.
This commit is contained in:
@@ -54,12 +54,7 @@ namespace DiscImageChef
|
||||
Array.Copy(destinationArray, 0, destinationArray, copyLength, destinationArray.Length - copyLength);
|
||||
}
|
||||
|
||||
public static string ByteArrayToHex(byte[] array)
|
||||
{
|
||||
return ByteArrayToHex(array, false);
|
||||
}
|
||||
|
||||
public static string ByteArrayToHex(byte[] array, bool upper)
|
||||
public static string ByteArrayToHex(byte[] array, bool upper = false)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for(long i = 0; i < array.LongLength; i++) sb.AppendFormat("{0:x2}", array[i]);
|
||||
|
||||
Reference in New Issue
Block a user