From: Florian Gross Date: 2005-01-13T08:26:16+09:00 Subject: Re: Style question - how to represent properties Graham Foster wrote: >>I'm currently writing Ruby bindings for libeet, which serializes C >>structs to disk. > > I'm looking to write at utility which would write data records out to > a fixed sized structure ("database" records for an MP3 player). I was > just wondering if you can use something like Ruby (where types don't > seemed to have a clearly defined size), when I need to serialise > exact sizes of items and byte order is import. Would your binding > help in this regard? (I'm a newbie - and this looked like a Ruby > utility I could get my teeth into.) > If not - any other suggestions? Is this not what Array#pack and String#unpack do?