Ruby: rb_data_type_struct Struct Reference

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

Data Fields
rb_data_type_struct Struct Reference

`#include <rtypeddata.h>`

## Data Fields
const char * | wrap_struct_name
struct {
RUBY_DATA_FUNC dmark
RUBY_DATA_FUNC dfree
size_t(* dsize )(const void *)
RUBY_DATA_FUNC dcompact
void * reserved [1]
} | function
const rb_data_type_t * | parent
void * | data
VALUE | flags

## Detailed Description

Definition at line 70 of file rtypeddata.h.

## Field Documentation

## ◆ data

void* rb_data_type_struct::data

Definition at line 81 of file rtypeddata.h.

## ◆ dcompact

RUBY_DATA_FUNC rb_data_type_struct::dcompact

Definition at line 76 of file rtypeddata.h.

## ◆ dfree

RUBY_DATA_FUNC rb_data_type_struct::dfree

Definition at line 74 of file rtypeddata.h.

## ◆ dmark

RUBY_DATA_FUNC rb_data_type_struct::dmark

Definition at line 73 of file rtypeddata.h.

## ◆ dsize

size_t(* rb_data_type_struct::dsize) (const void *)

Definition at line 75 of file rtypeddata.h.

## ◆ flags

VALUE rb_data_type_struct::flags

Definition at line 83 of file rtypeddata.h.

## ◆

struct { ... } rb_data_type_struct::function

## ◆ parent

const rb_data_type_t* rb_data_type_struct::parent

Definition at line 80 of file rtypeddata.h.

Referenced by rb_typeddata_inherited_p().

## ◆ reserved

void* rb_data_type_struct::reserved[1]

Definition at line 77 of file rtypeddata.h.

## ◆ wrap_struct_name

const char* rb_data_type_struct::wrap_struct_name

Definition at line 71 of file rtypeddata.h.

Referenced by rb_check_typeddata().

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

- include/ruby/internal/core/rtypeddata.h