From: Matthew Moss Date: 2006-01-26T23:34:46+09:00 Subject: Re: String.unpack endianess issue? > irb(main):001:0> a = [0, 0, 0, 6] > => [0, 0, 0, 6] > irb(main):002:0> x = a.pack("C*") > => "\000\000\000\006" > irb(main):003:0> x.unpack "N" > => [6] > > For convenience, I wrote a set of object-oriented wrappers around > pack/unpack. See bit-struct on raa. Ah, thanks. I noticed the "V" as I searched for "endian" in the docs, but I missed the "N". Should have searched on "byte order". Thanks...