CFFI and arrays
"Tim Bradshaw (as tfb at tfeb dot org)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
I'm sorry this isn't a LW-specific question. Using the LW FLI it's extremely painless to pass arrays without copying them into foreign code: you just need to make sure they're pinnable and then declare the FLI function to take something like a :lisp-simple-1d-array (I think there are non-simple-non-1d variants too). Can you do that with CFFI? As far as I can tell the answer is 'probably, but not in any supported way, and you might have to pretend that the array is an array of bytes at some point'. But I'm not sure. Thanks --tim _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html