Ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e0ba6b95ab71a441357ed5484e33498)
|
"Typed" user data. More...
#include <rtypeddata.h>
Data Fields | |
struct RBasic | basic |
The part that all ruby objects have in common. More... | |
const rb_data_type_t * | type |
This field stores various information about how Ruby should handle a data. More... | |
VALUE | typed_flag |
This has to be always 1. More... | |
void * | data |
Pointer to the actual C level struct that you want to wrap. More... | |
"Typed" user data.
By using this, extension libraries can wrap a C struct to make it visible from Ruby. For instance if you have a struct timeval
, and you want users to use it,
Definition at line 3802 of file rb_mjit_min_header-3.1.3.h.
struct RBasic RTypedData::basic |
The part that all ruby objects have in common.
Definition at line 3803 of file rb_mjit_min_header-3.1.3.h.
void * RTypedData::data |
Pointer to the actual C level struct that you want to wrap.
Definition at line 3806 of file rb_mjit_min_header-3.1.3.h.
const rb_data_type_t * RTypedData::type |
This field stores various information about how Ruby should handle a data.
This roughly resembles a Ruby level class (apart from method definition etc.)
Definition at line 3804 of file rb_mjit_min_header-3.1.3.h.
VALUE RTypedData::typed_flag |
This has to be always 1.
Definition at line 3805 of file rb_mjit_min_header-3.1.3.h.