Structure encapsulating slot factory data.
struct _SlotFactory SlotFactory {
asr_slot_entry_t * entries ;
size_t buffer_size ;
unsigned int page_size ;
unsigned int max_entries ;
unsigned int num_entries ;
SlotFactory_EntryList terminals ;
};
Optional. Specified at initialization.
The slot factory manages an array of ASR slot structures that can be passed to the various ASR context-manipulation functions.
The buffer slot structure is allocated in pages to optimize memory use without frequently reallocating the buffer. The size of a single page of slot entries can be set when the slot factory is initialized. The default page size is 4 KB, which is large enough to hold 168 asr_slot_entry_t instances. If a page size is specified when the slot factory is initialized, it is adjusted to the next largest 32-bit aligned buffer size.