def hex_to_int(hexval: bytes, base: int=16) ->int:
    """
	Convert given hex to a base-16 integer

	Parameters
	----------
		hexval: bytes
			Hex byte array
		base: int
			Base of integer conversion (default=16)
	"""
    return int(hexval, base)
