An instance of a FLI pointer.
An integer. If
points to one element in an array of object, and returns the element at the
position in the array.
The foreign object type that
points to. If the specified type is different to the actual type,
returns the value of the object in the format of
accesses and returns the value of the FLI object pointed to by
points to an aggregate type. In the case of aggregates, the return value is specified by using the
An error is signaled if pointer is a null pointer. You can use null-pointer-p to detect null pointers.
In the following example a
type is defined and an instance, pointed to by
, with a specified initial value of 10 is created with memory allocated using allocate-foreign-object. The
function is then used to get the value that
(fli:define-c-typedef LONG :long)
(setf (fli:dereference point) 20)
(fli:define-c-typedef BOOL (:boolean :int))
(setq point2 (fli:allocate-foreign-object :type 'BOOL))
(fli:dereference point2 :type :char)
LispWorks Foreign Language Interface User Guide and Reference Manual - 7 Dec 2011