def getInt(c):
    """
    get the integer value of byte.

    :param c: char/byte

    Returns the integer from the byte
    """
    if type(c) == int:
        return c
    elif type(c) == str and len(c) == 1:
        return int(ord(c))
    else:
        return None
