CIF-class: Class to represent external Call InterFace (CIF)

CIF-classR Documentation

Class to represent external Call InterFace (CIF)

Description

This class represents a call interface for invoking native routines via libffi. A CIF stands for Call InterFace and consists of a C-level object describing the call and also information about which parameters are mutable pointers.

Objects from the Class

Objects can be created by calls of the form new("CIF", ...). Typically, one uses the CIF constructor function.

Slots

ref:

Object of class "externalptr" representing the C object that is used when invoking a routine using callCIF.

pointerParameters:

Object of class "logical" indicating which of the parameters (if any) are pointers and hence potentially mutable in the call. These are used to return not only the value from the routine, but any of the inputs that might have been mutated.

Methods

No methods defined with class "CIF" in the signature.

Author(s)

Duncan Temple Lang

References

libffi

See Also

CIF and callCIF

Examples

showClass("CIF")

omegahat/Rffi documentation built on Nov. 29, 2023, 12:48 a.m.