FLI type descriptor
fli
:c-array type &rest dimensions
The type of the elements of the array.
A sequence of the dimensions of the new array.
:c-array type converts between Lisp structures and C arrays. In C, pointers are used to access the elements of an array. The implementation of the:c-array type takes this into account, by automatically dereferencing any pointers returned when accessing an array usingforeign-aref, unlike:foreign-array. :c-array uses the C convention that the first index value of an array is0.
(setq array1 (fli:allocate-foreign-object
:type '(:c-array :int 3 3)))
(setq array2 (fli:allocate-foreign-object
:type '(:c-array (:c-array :byte 3) 2)))
foreign-aref and foreign-array-pointer for more examples on the use of arrays. foreign-aref :foreign-array foreign-array-pointer