public static ByteArrayToString ( byte ba ) : string | ||
ba | byte | |
리턴 | string |
public static string ByteArrayToString(byte[] ba)
{
StringBuilder hex = new StringBuilder(ba.Length * 2);
foreach (byte b in ba)
hex.AppendFormat("{0:x2}", b);
return hex.ToString();
}