mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 13:57:14 -05:00
Fix getHexLines bug
Now skips the proper amount of bytes, yields the intended result.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user