def b2i_le(value: bytes) -> int:
    """Converts a sequence of bytes (in little-endian order) to a single integer."""
    value_int = sum(b * 2 ** (i * 8) for i, b in enumerate(value))
    return value_int