Ruby  2.4.2p198(2017-09-14revision59899)
Functions
raw_api.c File Reference
#include <ffi.h>
#include <ffi_common.h>
Include dependency graph for raw_api.c:

Go to the source code of this file.

Functions

size_t ffi_raw_size (ffi_cif *cif)
 
void ffi_raw_to_ptrarray (ffi_cif *cif, ffi_raw *raw, void **args)
 
void ffi_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_raw *raw)
 
void ffi_raw_call (ffi_cif *cif, void(*fn)(void), void *rvalue, ffi_raw *raw)
 

Function Documentation

◆ ffi_ptrarray_to_raw()

void ffi_ptrarray_to_raw ( ffi_cif *  cif,
void **  args,
ffi_raw *  raw 
)

Definition at line 138 of file raw_api.c.

References ALIGN, FFI_SIZEOF_ARG, and memcpy.

Referenced by ffi_raw_call().

◆ ffi_raw_call()

void ffi_raw_call ( ffi_cif *  cif,
void(*)(void)  fn,
void *  rvalue,
ffi_raw *  raw 
)

◆ ffi_raw_size()

size_t ffi_raw_size ( ffi_cif *  cif)

Definition at line 35 of file raw_api.c.

References ALIGN, FFI_SIZEOF_ARG, and result.

Referenced by closure_memsize(), ffi_raw_call(), and function_memsize().

◆ ffi_raw_to_ptrarray()

void ffi_raw_to_ptrarray ( ffi_cif *  cif,
ffi_raw *  raw,
void **  args 
)

Definition at line 57 of file raw_api.c.

References ALIGN, and FFI_SIZEOF_ARG.

Referenced by ffi_raw_call().