Ruby: ext/fiddle/libffi-3.2.1/src/raw_api.c File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

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, 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.

References ALIGN, and FFI_SIZEOF_ARG.

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

Referenced by ffi_raw_call().