|
infix
A JIT-Powered FFI Library for C
|
Internal definition of a named type registry. More...
#include <infix_internals.h>
Public Attributes | |
| infix_arena_t * | arena |
| bool | is_external_arena |
| size_t | num_buckets |
| size_t | num_items |
| _infix_registry_entry_t ** | buckets |
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.
| infix_arena_t* infix_registry_t::arena |
The arena that owns all type metadata and entry structs.
| _infix_registry_entry_t** infix_registry_t::buckets |
The array of hash table buckets (linked list heads).
| bool infix_registry_t::is_external_arena |
True if the arena is user-provided and should not be freed.
| size_t infix_registry_t::num_buckets |
The number of buckets in the hash table.
| size_t infix_registry_t::num_items |
The total number of items in the registry.