The FLI
:foreign-array
converts between FLI arrays and the foreign array type. It creates an array with the dimensions specified in
dimensions
, of elements of the type specified by
type
.
The following code defines a 3 by 4 foreign array with elements of type
:byte
.
(setq farray (fli:allocate-foreign-object
:type '(:foreign-array :byte (3 4)))