Ruby 4.0.10p0 (2026-11-19 revision a704b7cd95a42cc0cf5f307137bf3aac0285b915)
RString::[struct].as.heap Struct Reference

Strings that use separated memory region for contents use this pattern. More...

Data Structures

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

Data Fields

char * ptr
 Pointer to the contents of the string.
union  aux

Detailed Description

Strings that use separated memory region for contents use this pattern.

Definition at line 215 of file rstring.h.

Field Documentation

◆ ptr

Pointer to the contents of the string.

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


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