translate-to-foreign.
defctype.
translate-to-foreign.
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.