Ruby 4.0.6p0 (2026-07-14 revision 03b6d3f8898a28604fe6cb00eae3226b821168f4)
RArray::[struct].as.heap Struct Reference

Arrays that use separated memory region for elements use this pattern. More...

Data Structures

union  [union].as.heap.aux
 Auxiliary info. More...

Data Fields

long len
 Number of elements of the array.
union  aux
const VALUEptr
 Pointer to the C array that holds the elements of the array.

Detailed Description

Arrays that use separated memory region for elements use this pattern.

Definition at line 140 of file rarray.h.

Field Documentation

◆ len

Number of elements of the array.

◆ ptr

const VALUE* RArray::[struct].as.heap ptr

Pointer to the C array that holds the elements of the array.

In the old days each array had dedicated memory regions. That is no longer true today, but there still are arrays of such properties. This field could be used to point such things.


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