def be2i(b: bytes, signed: bool=False) ->int:
    """
    Convert big endian (b.e.) bytes to int

    Args:
        b: BE bytes to convert to int
        signed: two's complement flag
    Returns:

    """
    return int.from_bytes(b, 'big', signed=signed)
