Ruby 4.0.9p0 (2026-10-23 revision 3e93b23afcec3433f6aecc34b5d832799d754238)
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: