Confuser.Core/Utils.cs
/// <summary>
///     Encode the buffer to a hexadecimal string.
/// </summary>
/// <param name="buff">The input buffer.</param>
/// <returns>A hexadecimal representation of input buffer.</returns>
Encode the buffer to a hexadecimal string.
Encode the buffer to a hexadecimal string .
public static string ToHexString(byte[] buff)
        {
            var ret = new char[buff.Length * 2];
            int i = 0;
            foreach (byte val in buff)
            {
                ret[i++] = hexCharset[val >> 4];
                ret[i++] = hexCharset[val & 0xf];
            }
            return new string(ret);
        }
public static string ToHexString ( byte [ ] buff ) { var ret = new char [ buff . Length * 2 ] ; int i = 0 ; foreach ( byte val in buff ) { ret [ i ++ ] = hexCharset [ val >> 4 ] ; ret [ i ++ ] = hexCharset [ val & 0xf ] ; } return new string ( ret ) ; }
Encode the buffer to a hexadecimal string.
Encode the buffer to a hexadecimal string .
A hexadecimal representation of input buffer.
A hexadecimal representation of input buffer .
buff
byte[]
The input buffer.
The input buffer .