fli interface and arrays
I've gone through the ffi documentation and can't find what I'm looking for. Please point me in the right direction, thanks inadvance. If I have an external function that wants an array of some type (e.g. array of ints), is the only way to allocate and pass these values using foreign types? Is there no way to have the pointer to an underlying native lisp array (regular or static memory) passed through? I see that there seems to be no way to guarantee the non-execution of the gc, so passing a regular array through would of course be dangerous, but what if the array was allocated using with-static? For example, in CMUCL I can call get the addresss of a lisp array using sys:vector-sap which is a handle to the underlying array. (sap-int (vector-sap array)) actually gives the memory address. Thanks, brad