mirror of
https://github.com/aaru-dps/Aaru.Helpers.git
synced 2025-12-16 19:24:35 +00:00
Fix hex printing of non-16-byte multiple data.
This commit is contained in:
@@ -61,6 +61,9 @@ namespace DiscImageChef
|
||||
int offsetLength = $"{array.Length:X}".Length;
|
||||
var sb = new StringBuilder();
|
||||
|
||||
if(last > 0)
|
||||
rows++;
|
||||
|
||||
if(last == 0)
|
||||
last = 16;
|
||||
|
||||
@@ -119,7 +122,7 @@ namespace DiscImageChef
|
||||
for(int j = 0; j < lastBytes; j++)
|
||||
{
|
||||
int v = array[b];
|
||||
sb.Append(v > 31 && v < 127 || v > 159 ? (char)v : '.');
|
||||
sb.Append((v > 31 && v < 127) || v > 159 ? (char)v : '.');
|
||||
b++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user