Subject: [ruby-ffi] Re: :double pointer |
From: v01d |
Date: 12/8/09 4:22 PM |
To: ruby-ffi |
Actually, now that I checked, get_double is there (it seems to call get_float64). I just thought that there would be a read_double method (which seemed to be the public API, as opposed to get_* methods). And what about read/get_size_t? That really seems to be undefined here. By the way, I have RubyFFI 0.5.4 (latests from rubygems) and Ruby 1.9. Thank you On Dec 7, 11:52 pm, Wayne Meissner <wmeiss...@gmail.com> wrote:
<phreakuenc...@gmail.com>:2009/12/8 v01dHi, I didn't find a bug tracker, so I'm telling here: it seems that reading a double from a MemoryPointer.new(:double) is not possibe, unless I use get_float64 (which I found after googling). It seems a get_double is missing, isn't it?put_double and get_double are there as of 0.5.0 at least (I didn't bother checking further back). If you're not using the latest 0.5.x release, you really want to upgrade.