Re: FFI: 'C structure' assignment/copying
John Pallister <[email protected]> Thu, 17 Apr 2003 09:52:35 +1200
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <5.2.0.9.0.20030417094211.00ae27c0@goatboy> |
Sweet! Thanks, Chris. On a general note, it would be very useful if there was an 'index.html' in the Modules directory that summarised what's available in there. At 23:44 16/04/03 +1200, you wrote: >On Wed, 16 Apr 2003 21:52:00 +1200, "John Pallister" ><[email protected]> said: > > I don't need member-wise assignment, just a straight memcpy. ;) So if > > there's some nice little embedded assembler function somewhere in > > sys/*.lisp that I could use, that would be great. > >There's a mem-c-funcs.lisp in the Modules subdirectory. Something like >the following should work: > >(require 'mem-c-funcs) >(memcpy m2 m1 (ct:sizeof 'my-c-struct)) > >It's implemented in assembler so should be fairly quick. > >Chris. >-- > Chris Double > [email protected] -- John Pallister [email protected] ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/SyjtlB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/