Re: FFI: 'C structure' assignment/copying
"Chris Double" <[email protected]> Wed, 16 Apr 2003 23:44:48 +1200
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <[email protected]> |
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] ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/W7NydA/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/