Ruby 4.0.10p0 (2026-11-19 revision a704b7cd95a42cc0cf5f307137bf3aac0285b915)
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: