s/took take/took good care/
On Mon, Apr 29, 2013 at 9:13 AM, Nathan Rajlich <[email protected]>wrote: > Ben, just FYI I took take to add tests to node-ffi making sure passing in > and returning structs by value (NodObjC depended on it). See: > > - > https://github.com/rbranson/node-ffi/blob/v1.2.5/test/ffi_tests.cc#L20-L32 > - > https://github.com/rbranson/node-ffi/blob/v1.2.5/test/foreign_function.js#L46-L61 > > I haven't yet found places where it doesn't work as expected, but perhaps > more complex structs wouldn't work. > > > On Mon, Apr 29, 2013 at 2:07 AM, Ben Noordhuis <[email protected]> wrote: > >> On Mon, Apr 29, 2013 at 3:18 AM, Kiki Kinstlick >> <[email protected]> wrote: >> > I am trying to figure out how to best exchange data between a NodeJS >> > module and a C library. Can I use the node-ffi module to do this? Or >> > would I have to write my own nodejs addon? Thanks! >> >> It very much depends on the library. >> >> As a general observation, FFI (not just node-ffi) works great 90% of >> the time and poorly or not at all for the remaining 10%. Things like >> passing or returning structs by value are often painful or impossible, >> for example. >> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
