Fix getHexLines bug

Now skips the proper amount of bytes, yields the intended result.
This commit is contained in:
Kurt
2015-11-04 23:15:11 -08:00
parent 2d906abcf4
commit c9040fa6a8

View File

@@ -191,7 +191,7 @@ internal static string[] getHexLines(byte[] data, int count = 4)
// Generates an x-byte wide space separated string array; leftovers included at the end.
string[] s = new string[data.Length/count + ((data.Length % count > 0) ? 1 : 0)];
for (int i = 0; i < s.Length;i++)
s[i] = BitConverter.ToString(data.Skip(i*4).Take(count).ToArray()).Replace('-', ' ');
s[i] = BitConverter.ToString(data.Skip(i*count).Take(count).ToArray()).Replace('-', ' ');
return s;
}
internal static string[] getHexLines(uint[] data)