Next: , Previous: ensure-foreign-array, Up: Functions for creation of grids make-foreign-array-from-pointer
— Function: grid:make-foreign-array-from-pointer pointer dimensions element-type &optional finalize

Given a foreign pointer to an array, make a Lisp object of class 'foreign-array that references that. This will never make a static-vector. If finalize is true, than the array memory will be freed when this object is garbage collected; otherwise it is presumed that the foreign code will handle that job.

If a foreign pointer already exist (for example, the foreign array was allocated by foreign code), this function will make a foreign array from it. Note that the cl-array of this grid will always be nil, regardless of whether static-vectors are supported for the CL implementation.