Ruby 4.0.7p0 (2026-09-15 revision 229531a6cfbf07e3caef30dbac24a2a3f3fed482)
RString::[union].as.heap.aux Union Reference

Auxiliary info. More...

Data Fields

long capa
 Capacity of *ptr.
VALUE shared
 Parent of the string.

Detailed Description

Auxiliary info.

Definition at line 225 of file rstring.h.

Field Documentation

◆ capa

Capacity of *ptr.

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

◆ shared

Parent of the string.

Nowadays strings can share their contents 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: