On Mon, Jan 19, 2009 at 2:35 AM, John Fremlin <j...@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/ _______________________________________________ cffi-devel mailing list cffi-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel