Subject: Re: [ruby-ffi] Re: Having trouble with a struct |
From: Wayne Meissner |
Date: 11/3/10 6:32 PM |
To: ruby-ffi@googlegroups.com |
Indeed, looks like a bug. That should not be neccessary at all - that struct should pack naturally. A couple of things: 1) What OS/cpu is this on? 2) Can you try it on JRuby? 3) Can you try adding 'pack 1' before the layout line? On 4 November 2010 08:08, Qwerty <qwerty123451910@hotmail.com> wrote:
I found a way around the problems I was having. Any field bigger than 8 bits I declare as [:uchar,x bytes]. Feels like an ugly hack to get around what seems to be a pretty nasty bug