Package: cffi

Generic Function free-translated-object

Lambda List

free-translated-object (value type param)

Arguments

pointer -- The foreign value returned by translate-to-foreign.
type-name -- A symbol naming a foreign type defined by defctype.
param -- The second value, if any, returned by translate-to-foreign.

Details

This generic function may be specialized by user code to perform automatic deallocation of foreign objects as they are passed to C functions.

Any methods defined on this generic function must EQL-specialize the type-name parameter on a symbol defined as a foreign type by the defctype macro.

Foreign Type Translators
 

See also