Ruby  2.4.2p198(2017-09-14revision59899)
Data Fields
RString Struct Reference

#include <ruby.h>

Data Fields

struct RBasic basic
 
union {
   struct {
      long   len
 
      char *   ptr
 
      union {
         long   capa
 
         VALUE   shared
 
      }   aux
 
   }   heap
 
   char   ary [RSTRING_EMBED_LEN_MAX+1]
 
as
 

Detailed Description

Definition at line 961 of file ruby.h.

Field Documentation

◆ ary

char RString::ary[RSTRING_EMBED_LEN_MAX+1]

◆ as

union { ... } RString::as

◆ aux

union { ... } RString::aux

◆ basic

struct RBasic RString::basic

Definition at line 962 of file ruby.h.

Referenced by setup_fake_str().

◆ capa

long RString::capa

◆ heap

struct { ... } RString::heap

Referenced by gc_mark_children().

◆ len

long RString::len

Definition at line 965 of file ruby.h.

Referenced by r_bytes0(), r_bytes1_buffered(), r_ivar(), r_object0(), w_long(), and w_object().

◆ ptr

char* RString::ptr

◆ shared

VALUE RString::shared

Definition at line 969 of file ruby.h.

Referenced by rb_str_tmp_frozen_release(), str_new_frozen(), str_replace(), and str_shared_replace().


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