Ruby 3.2.2p53 (2023-03-30 revision e51014f9c05aa65cbf203442d37fef7c12390015)
|
"Typed" user data. More...
#include <rtypeddata.h>
Data Fields | |
struct RBasic | basic |
The part that all ruby objects have in common. | |
const rb_data_type_t * | type |
This field stores various information about how Ruby should handle a data. | |
VALUE | typed_flag |
This has to be always 1. | |
void * | data |
Pointer to the actual C level struct that you want to wrap. | |
"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 340 of file rtypeddata.h.
struct RBasic RTypedData::basic |
The part that all ruby objects have in common.
Definition at line 343 of file rtypeddata.h.
void * RTypedData::data |
Pointer to the actual C level struct that you want to wrap.
Definition at line 362 of file rtypeddata.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 350 of file rtypeddata.h.
VALUE RTypedData::typed_flag |
This has to be always 1.
Definition at line 359 of file rtypeddata.h.