|
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. The canonical infix_type objects and entry metadata are owned by a single arena, while the internal bucket array is heap-allocated to allow for efficient resizing.
| 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 (heap-allocated).
| 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.