Formats a hex dump from bytes.
string hex = HexDump.Format(myBytes);
Produces output resembling:
0000 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 abcdefgh ijklmnop
0010 71 72 73 74 75 76 77 78 79 7A qrstuvwx yz
Options:
includeOffset
controls whether the leftmost column is displayedincludeAscii
controls whether the rightmost column is displayed
Use the HexDump
package from NuGet.