def METHOD_NAME(cls, data: bytes) -> SourceView:
    """Constructs a source view from bytes."""
    data = bytes(data)
    rv = cls._from_objptr(
        rustcall(lib.symbolic_sourceview_from_bytes, data, len(data))
    )
    # we need to keep this reference alive or we crash. hard.
    attached_refs[rv] = data
    return rv