Subject: Re: [ruby-ffi] Re: Alignment problem when passing values for struct on x86_64-linux |
From: Jon |
Date: 12/2/09 1:51 PM |
To: ruby-ffi@googlegroups.com |
I did try to use Struct, but I hadn't figured out that I needed to use .by_value in the function 'declaration'. It might help to put an example of using struct like this one the web- pages.
How about starting a Struct wiki page with the key usage tidbit's you've found so far? ...similar to what John C. did for http://wiki.github.com/ffi/ffi/enums or how Brian K. updated http://wiki.github.com/ffi/ffi/examples for strings as output params. The great thing about the GitHub wiki pages is they're versioned so we can all tweak the content until we're satisfied and forget about losing info. Plus I want to draft off of you and add something about the nested Struct syntax ;) Thanks, Jon