Ruby
3.1.4p223 (2023-03-30 revision HEAD)
|
"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 340 of file rtypeddata.h.
struct RBasic RTypedData::basic |
The part that all ruby objects have in common.
Definition at line 247 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.