Next: convert-to-foreign, Previous: Allocating Foreign Objects, Up: Foreign Types [Contents][Index]
The primitive C value as returned from a primitive foreign function or
from convert-to-foreign
.
A CFFI type specifier.
The Lisp value translated from foreign-value.
This is an external interface to the type translation facility. In the implementation, all foreign functions are ultimately defined as type translation wrappers around primitive foreign function invocations.
This function is available mostly for inspection of the type translation process, and possibly optimization of special cases of your foreign function calls.
Its behavior is better described under translate-from-foreign
’s
documentation.
CFFI-USER> (convert-to-foreign "a boat" :string) ⇒ #<FOREIGN-ADDRESS #x097ACDC0> ⇒ T CFFI-USER> (convert-from-foreign * :string) ⇒ "a boat"
convert-to-foreign
free-converted-object
translate-from-foreign