PERWAPI.Hex.Byte C# (CSharp) Method

Byte() public static method

Derives a hexademical string for a byte value
public static Byte ( int b ) : String
b int the byte value
return String
        public static String Byte(int b)
        {
            char[] str = new char[2];
            uint num = (uint)b;
            uint b1 = num & nibble0Mask;
            uint b2 = (num & nibble1Mask) >> 4;
            str[0] = hexDigit[b2];
            str[1] = hexDigit[b1];
            return new String(str);
        }