Ruby: RStruct Struct Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Data Fields
RStruct Struct Reference

`#include <struct.h>`

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

## Detailed Description

Definition at line 23 of file struct.h.

## Field Documentation

## ◆ ary

const VALUE RStruct::ary[RSTRUCT_EMBED_LEN_MAX]

Definition at line 30 of file struct.h.

## ◆

union { ... } RStruct::as

## ◆ basic

struct RBasic RStruct::basic

Definition at line 24 of file struct.h.

## ◆

struct { ... } RStruct::heap

## ◆ len

long RStruct::len

Definition at line 27 of file struct.h.

## ◆ ptr

const VALUE* RStruct::ptr

Definition at line 28 of file struct.h.

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

- internal/struct.h