| Ruby
    3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
    | 
#include <ruby.h>#include <errno.h>#include <ffi.h>#include <closure.h>#include <conversions.h>#include <function.h>

Go to the source code of this file.
| Macros | |
| #define | ffi_type_uchar ffi_type_uint8 | 
| #define | ffi_type_schar ffi_type_sint8 | 
| #define | TYPE_VOID 0 | 
| #define | TYPE_VOIDP 1 | 
| #define | TYPE_CHAR 2 | 
| #define | TYPE_SHORT 3 | 
| #define | TYPE_INT 4 | 
| #define | TYPE_LONG 5 | 
| #define | TYPE_FLOAT 7 | 
| #define | TYPE_DOUBLE 8 | 
| #define | TYPE_VARIADIC 9 | 
| #define | TYPE_CONST_STRING 10 | 
| #define | TYPE_INT8_T TYPE_CHAR | 
| #define | TYPE_SSIZE_T TYPE_INT | 
| #define | TYPE_SIZE_T (-1*SIGNEDNESS_OF_SIZE_T*TYPE_SSIZE_T) | 
| #define | TYPE_PTRDIFF_T TYPE_INT | 
| #define | TYPE_INTPTR_T TYPE_INT | 
| #define | TYPE_UINTPTR_T (-TYPE_INTPTR_T) | 
| #define | ALIGN_OF(type) offsetof(struct {char align_c; type align_x;}, align_x) | 
| #define | ALIGN_VOIDP ALIGN_OF(void*) | 
| #define | ALIGN_CHAR ALIGN_OF(char) | 
| #define | ALIGN_SHORT ALIGN_OF(short) | 
| #define | ALIGN_INT ALIGN_OF(int) | 
| #define | ALIGN_LONG ALIGN_OF(long) | 
| #define | ALIGN_FLOAT ALIGN_OF(float) | 
| #define | ALIGN_DOUBLE ALIGN_OF(double) | 
| #define | ALIGN_INT8_T ALIGN_OF(int8_t) | 
| #define | ALIGN_INT16_T ALIGN_OF(int16_t) | 
| #define | ALIGN_INT32_T ALIGN_OF(int32_t) | 
| #define | ALIGN_INT64_T ALIGN_OF(int64_t) | 
| Typedefs | |
| typedef void(* | rb_fiddle_freefunc_t) (void *) | 
| Functions | |
| VALUE | rb_fiddle_new_function (VALUE address, VALUE arg_types, VALUE ret_type) | 
| VALUE | rb_fiddle_ptr_new_wrap (void *ptr, long size, rb_fiddle_freefunc_t func, VALUE wrap0, VALUE wrap1) | 
| Variables | |
| VALUE | mFiddle | 
| VALUE | rb_eFiddleDLError | 
| #define ALIGN_OF | ( | type | ) | offsetof(struct {char align_c; type align_x;}, align_x) | 
| #define TYPE_SIZE_T (-1*SIGNEDNESS_OF_SIZE_T*TYPE_SSIZE_T) | 
| #define TYPE_UINTPTR_T (-TYPE_INTPTR_T) | 
Definition at line 69 of file function.c.
References argv, cFiddleFunction, and rb_class_new_instance().
| VALUE rb_fiddle_ptr_new_wrap | ( | void * | ptr, | 
| long | size, | ||
| rb_fiddle_freefunc_t | func, | ||
| VALUE | wrap0, | ||
| VALUE | wrap1 | ||
| ) | 
| VALUE mFiddle | 
Definition at line 3 of file fiddle.c.
Referenced by Init_fiddle(), Init_fiddle_closure(), Init_fiddle_function(), Init_fiddle_handle(), Init_fiddle_memory_view(), Init_fiddle_pinned(), and rb_fiddle_generic_to_value().
| VALUE rb_eFiddleDLError | 
Definition at line 4 of file fiddle.c.
Referenced by Init_fiddle().
 1.8.17
 1.8.17