Ruby 4.0.7p0 (2026-09-15 revision 229531a6cfbf07e3caef30dbac24a2a3f3fed482)
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: