Ruby: RStruct Struct Reference

Ruby 3.4.9p82 (2026-03-11 revision 76cca827ab52ab1d346a728f068d5b8da3e2952b)

Data Fields
RStruct Struct Reference

## Data Fields
struct RBasic | basic
union { |
struct { |
long len |
const VALUE * ptr |
} heap
const VALUE ary [1] |
} | as

## Detailed Description

Definition at line 20 of file struct.h.

## Field Documentation

## ◆ ary

const VALUE RStruct::ary[1]

Definition at line 32 of file struct.h.

## ◆ basic

struct RBasic RStruct::basic

Definition at line 21 of file struct.h.

## ◆ len

long RStruct::len

Definition at line 24 of file struct.h.

## ◆ ptr

const VALUE* RStruct::ptr

Definition at line 25 of file struct.h.

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

- internal/struct.h