Ruby: pm_constant_pool_t Struct Reference

Ruby 3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)

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_t * | buckets
| The buckets in the hash map.
pm_constant_t * | constants
| The constants that are stored in the buckets.
uint32_t | size
| The number of buckets in the hash map.
uint32_t | capacity
| The number of buckets that have been allocated in the hash map.

## Detailed Description

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

Definition at line 118 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 120 of file pm_constant_pool.h.

Referenced by 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 129 of file pm_constant_pool.h.

Referenced by 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 123 of file pm_constant_pool.h.

Referenced by 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 126 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:

- prism/util/pm_constant_pool.h