mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
DOCUMENTATION: Added XML documentation to DiscImageChef.Helpers.
This commit is contained in:
@@ -37,11 +37,22 @@ namespace DiscImageChef
|
||||
{
|
||||
public static class PrintHex
|
||||
{
|
||||
/// <summary>
|
||||
/// Prints a byte array as hexadecimal values to the console
|
||||
/// </summary>
|
||||
/// <param name="array">Array</param>
|
||||
/// <param name="width">Width of line</param>
|
||||
public static void PrintHexArray(byte[] array, int width)
|
||||
{
|
||||
DicConsole.WriteLine(ByteArrayToHexArrayString(array, width));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Prints a byte array as hexadecimal values to a string
|
||||
/// </summary>
|
||||
/// <param name="array">Array</param>
|
||||
/// <param name="width">Width of line</param>
|
||||
/// <returns>String containing hexadecimal values</returns>
|
||||
public static string ByteArrayToHexArrayString(byte[] array, int width)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user