Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_artifact_t Struct Reference

Borrowed artifact view owned by a result object. More...

#include <artifact.h>

Data Fields

loomc_artifact_kind_t kind
 Artifact kind.
loomc_string_view_t format
 Stable format string, such as vmfb, spirv, LOOMC_ARTIFACT_FORMAT_LOOM_TEXT, or LOOMC_ARTIFACT_FORMAT_JSON.
loomc_string_view_t identifier
 Human-readable artifact identifier.
loomc_byte_span_t contents
 Artifact bytes.

Detailed Description

Borrowed artifact view owned by a result object.

Lifetime
Artifact strings and bytes are owned by the result that returned this view. They remain valid until that result is released.

The documentation for this struct was generated from the following file: