Subject: [ruby-ffi] Re: Getting a pointer from a String |
From: candlerb |
Date: 5/8/11 4:46 AM |
To: ruby-ffi |
On May 7, 10:29 pm, Wayne Meissner <wmeiss...@gmail.com> wrote:
You can't get a pointer to a String, since thats not portable (i.e. not possible on JRuby).
So what happens when you pass a String to a function which takes a char* argument? Does FFI copy the string into a temporary buffer behind-the-scenes, and then copy it back again afterwards?