Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)
RArray::[union].as.heap.aux Union Reference

Auxiliary info. More...

Data Fields

long capa
 Capacity of *ptr.
const VALUE shared_root
 Parent of the array.

Detailed Description

Auxiliary info.

Definition at line 146 of file rarray.h.

Field Documentation

◆ capa

Capacity of *ptr.

A continuous memory region of at least capa elements is expected to exist at *ptr. This can be bigger than len.

◆ shared_root

const VALUE RArray::[union].as.heap.aux shared_root

Parent of the array.

Nowadays arrays can share their backend memory regions each other, constructing gigantic nest of objects. This situation is called "shared", and this is the field to control such properties.


The documentation for this union was generated from the following files: