Otp.AbstractConnection.hex0 C# (CSharp) Method

hex0() static private method

static private hex0 ( byte x ) : System.String
x byte
return System.String
        internal static System.String hex0(byte x)
        {
            char[] tab = new char[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
            int uint_Renamed;
            if (x < 0)
            {
                uint_Renamed = x & 0x7F;
                uint_Renamed |= (1 << 7);
            }
            else
            {
                uint_Renamed = (int) x;
            }
            return "" + tab[SupportClass.URShift(uint_Renamed, 4)] + tab[uint_Renamed & 0xF];
        }