MCPcopy Create free account
hub / github.com/CCob/lsarelayx / ByteArrayToString

Method ByteArrayToString

client/Utils.cs:7–12  ·  view source on GitHub ↗
(byte[] ba)

Source from the content-addressed store, hash-verified

5 public class Utils {
6
7 public static string ByteArrayToString(byte[] ba) {
8 StringBuilder hex = new StringBuilder(ba.Length * 2);
9 foreach (byte b in ba)
10 hex.AppendFormat("{0:x2}", b);
11 return hex.ToString();
12 }
13
14 public static string HexDump(byte[] bytes, int bytesPerLine = 16) {
15 if (bytes == null) return "<null>";

Callers 1

PrintNTLMv2Method · 0.80

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected