|
Loom C API
Public Loom compiler C API
|
Workspace creation options. More...
#include <workspace.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 workspace options. | |
| loomc_host_size_t | block_size |
| Total bytes acquired from the host allocator per fixed-size arena block. | |
Workspace creation options.
Callers zero-initialize this descriptor, set type to LOOMC_STRUCTURE_TYPE_WORKSPACE_OPTIONS, set structure_size to sizeof(loomc_workspace_options_t), and fill the requested fields.
| loomc_host_size_t loomc_workspace_options_t::block_size |
Total bytes acquired from the host allocator per fixed-size arena block.
Internal tracking metadata consumes part of this capacity.
| loomc_structure_type_t loomc_workspace_options_t::type |
Structure type.
Must be LOOMC_STRUCTURE_TYPE_WORKSPACE_OPTIONS when nonzero.