Function rb_data_object_wrap

Source
pub unsafe extern "C" fn rb_data_object_wrap(
    klass: VALUE,
    datap: *mut c_void,
    dmark: RUBY_DATA_FUNC,
    dfree: RUBY_DATA_FUNC,
) -> VALUE
Expand description

This is the primitive way to wrap an existing C struct into ::RData.

ยง@param[in] klass Ruby level class of the returning object. @param[in] datap Pointer to the target C struct. @param[in] dmark Mark function. @param[in] dfree Free function. @exception rb_eTypeError klass is not a class. @exception rb_eNoMemError Out of memory. @return An allocated object that wraps datap.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3