Ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e0ba6b95ab71a441357ed5484e33498)
|
#include <rdata.h>
Data Fields | |
struct RBasic | basic |
Basic part, including flags and class. More... | |
RUBY_DATA_FUNC | dmark |
This function is called when the object is experiencing GC marks. More... | |
RUBY_DATA_FUNC | dfree |
This function is called when the object is no longer used. More... | |
void * | data |
Pointer to the actual C level struct that you want to wrap. More... | |
Old "untyped" user data. It has roughly the same usage as struct RTypedData, but lacked several features such as support for compaction GC. Use of this struct is not recommended any longer. If it is dead necessary, please inform the core devs about your usage.
Definition at line 3631 of file rb_mjit_min_header-3.1.3.h.
struct RBasic RData::basic |
Basic part, including flags and class.
Definition at line 3632 of file rb_mjit_min_header-3.1.3.h.
void * RData::data |
Pointer to the actual C level struct that you want to wrap.
Definition at line 3635 of file rb_mjit_min_header-3.1.3.h.
RUBY_DATA_FUNC RData::dfree |
This function is called when the object is no longer used.
You need to do whatever necessary to avoid memory leaks.
Definition at line 3634 of file rb_mjit_min_header-3.1.3.h.
RUBY_DATA_FUNC RData::dmark |
This function is called when the object is experiencing GC marks.
If it contains references to other Ruby objects, you need to mark them also. Otherwise GC will smash your data.
Definition at line 3633 of file rb_mjit_min_header-3.1.3.h.