|
Ruby 4.0.10p0 (2026-11-19 revision a704b7cd95a42cc0cf5f307137bf3aac0285b915)
|
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 VALUE * | ptr |
| Pointer to the C array that holds the elements of the array. | |
Arrays that use separated memory region for elements use this pattern.
| long RArray::[struct].as.heap len |
Number of elements of the array.
| 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.