deref-pointer — Deferences a pointer. Macro
deref-pointer
ptr type
=> value
ptr
A pointer to a foreign object.
type
A foreign type of the object being pointed to.
The value of the object where the pointer points.
(let ((intp (allocate-foreign-object :int))) (setf (deref-pointer intp :int) 10) (prog1 (deref-pointer intp :int) (free-foreign-object intp))) => 10