Subject: Re: [ruby-ffi] Re: Pointer Freeing Bug |
From: Jon |
Date: 1/6/10 4:28 PM |
To: ruby-ffi@googlegroups.com |
<ja...@graysoftinc.com> wrote:On Jan 6, 2:43 pm, JEG2It seems to work, but I wasn't sure how to define the size_t parameter. I assumed it's an unsigned long and defined it as such: func :name => :malloc, :args => :ulong, :returns => :pointer Can I really count on that though? Is it portable?http://wiki.github.com/ffi/ffi/types I've switched to using that. James Edward Gray IIAh, FFI does support size_t. It's just not listed here:
Is size_t portable across FFI impls? Jon