Ruby  3.4.0dev (2024-12-06 revision 892c46283a5ea4179500d951c9d4866c0051f27b)
Data Fields
pm_constant_pool_t Struct Reference

The overall constant pool, which stores constants found while parsing. More...

#include <pm_constant_pool.h>

Data Fields

pm_constant_pool_bucket_tbuckets
 The buckets in the hash map. More...
 
pm_constant_tconstants
 The constants that are stored in the buckets. More...
 
uint32_t size
 The number of buckets in the hash map. More...
 
uint32_t capacity
 The number of buckets that have been allocated in the hash map. More...
 

Detailed Description

The overall constant pool, which stores constants found while parsing.

Definition at line 134 of file pm_constant_pool.h.

Field Documentation

◆ buckets

pm_constant_pool_bucket_t* pm_constant_pool_t::buckets

The buckets in the hash map.

Definition at line 136 of file pm_constant_pool.h.

Referenced by pm_constant_pool_find(), pm_constant_pool_free(), pm_constant_pool_init(), and pm_serialize_content().

◆ capacity

uint32_t pm_constant_pool_t::capacity

The number of buckets that have been allocated in the hash map.

Definition at line 145 of file pm_constant_pool.h.

Referenced by pm_constant_pool_find(), pm_constant_pool_free(), pm_constant_pool_init(), and pm_serialize_content().

◆ constants

pm_constant_t* pm_constant_pool_t::constants

The constants that are stored in the buckets.

Definition at line 139 of file pm_constant_pool.h.

Referenced by pm_constant_pool_find(), pm_constant_pool_free(), pm_constant_pool_id_to_constant(), pm_constant_pool_init(), and pm_serialize_content().

◆ size

uint32_t pm_constant_pool_t::size

The number of buckets in the hash map.

Definition at line 142 of file pm_constant_pool.h.

Referenced by pm_constant_pool_init(), and pm_serialize_content().


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