Ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
Functions
raw_api.c File Reference
#include <ffi.h>
#include <ffi_common.h>

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, i, memcpy(), and ptr.

◆ ffi_raw_call()

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

Definition at line 204 of file raw_api.c.

References alloca, ffi_call(), and ffi_raw_to_ptrarray().

◆ ffi_raw_size()

size_t ffi_raw_size ( ffi_cif *  cif)

Definition at line 35 of file raw_api.c.

◆ 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, FFI_SIZEOF_ARG, i, and ptr.

Referenced by ffi_raw_call().