From: Brian Candler Date: 2003-05-29T17:16:40+09:00 Subject: Re: RCR: unpack/pack Bignum On Thu, May 29, 2003 at 07:20:04AM +0900, Robert Feldt wrote: > This patch adds a 'W' template character to pack and unpack for > packing/unpacking an unsigned integer (Fixnum *OR* Bignum). The packing > is from MSB to LSB so that > > [0xff00].pack("W") == "\377\000" It's variable length, but without carrying a length indication? How would you unpack such a thing when included in a string with other items; do you have to add a length indication yourself? Regards, Brian.