Subject:
Re: [ruby-ffi] Is there any way we can use string type as return parameter?
From:
Wayne Meissner
Date:
3/29/10 11:45 PM
To:
ruby-ffi@googlegroups.com

On 30 March 2010 05:20, Evan Phoenix <evan@fallingsnow.net> wrote:
>
>
> Does ruby-ffi not support the :strptr type? It's in the original FFI spec.

No.  The most likely reason it was not included was because (at the
time) there was no code using it and no tests.

Its not hard to add - but any code using it will be incompatible with
jruby 1.5 and below, so people are going to have to declare the return
type as :pointer and extract the string anyway to be backwards
compatible.

To unsubscribe from this group, send email to ruby-ffi+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.