infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
infix_registry_t Struct Reference

Internal definition of a named type registry. More...

#include <infix_internals.h>

Collaboration diagram for infix_registry_t:
[legend]

Public Attributes

infix_arena_tarena
 
bool is_external_arena
 
size_t num_buckets
 
size_t num_items
 
_infix_registry_entry_t ** buckets
 

Detailed Description

Internal definition of a named type registry.

Implemented as a hash table with separate chaining for collision resolution. All memory for the table, its entries, and the canonical infix_type objects it stores are owned by a single arena for simple lifecycle management.

Member Data Documentation

◆ arena

infix_arena_t* infix_registry_t::arena

The arena that owns all type metadata and entry structs.

◆ buckets

_infix_registry_entry_t** infix_registry_t::buckets

The array of hash table buckets (linked list heads).

◆ is_external_arena

bool infix_registry_t::is_external_arena

True if the arena is user-provided and should not be freed.

◆ num_buckets

size_t infix_registry_t::num_buckets

The number of buckets in the hash table.

◆ num_items

size_t infix_registry_t::num_items

The total number of items in the registry.


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