[cffi-devel] shareable-byte-vectors for Allegro

Luís Oliveira luismbo at gmail.com
Mon Jan 19 02:57:06 UTC 2009


On Mon, Jan 19, 2009 at 2:35 AM, John Fremlin <jf at msi.co.jp> wrote:
> Duane at Franz has helpfully come up with a decent way to get the real
> foreign address from a Lisp array.
>
> (let ((x (make-array 10 :element-type '(unsigned-byte 8) :allocation :static-reclaimable)))
>   (ff:fslot-address-typed :unsigned-char :lisp x))
>
> We will test a modification of with-shareable-byte-vector to use this
> mechanism for ,ptr-var, hopefully it will work well.

What's the advantage, compared to using :FOREIGN-ADDRESS?

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/




More information about the cffi-devel mailing list