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

Module deserialization options. More...

#include <module.h>

Data Fields

loomc_structure_type_t type
 Structure type.
loomc_host_size_t structure_size
 Size of this structure in bytes.
const void * next
 Extension chain for future deserialization options.
loomc_source_format_t format
 Input source format.
loomc_string_view_t identifier
 Identifier used for diagnostics and module provenance.

Detailed Description

Module deserialization options.

Callers zero-initialize this descriptor, set type to LOOMC_STRUCTURE_TYPE_MODULE_DESERIALIZE_OPTIONS, set structure_size to sizeof(loomc_module_deserialize_options_t), and fill the requested fields.

Field Documentation

◆ format

loomc_source_format_t loomc_module_deserialize_options_t::format

Input source format.

Unknown uses the source format when available, then falls back to bytecode magic detection and textual .loom.

◆ identifier

loomc_string_view_t loomc_module_deserialize_options_t::identifier

Identifier used for diagnostics and module provenance.

Empty uses the input source identifier, filesystem path, or a format-specific default.

◆ type

loomc_structure_type_t loomc_module_deserialize_options_t::type

Structure type.

Must be LOOMC_STRUCTURE_TYPE_MODULE_DESERIALIZE_OPTIONS when nonzero.


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