Pack() and unpack() functions for int64

hi Rubyists,

i need int 64 conversions functions, but i cannot find them in
Array#pack. Do i need to write them myself, write a patch for pack.c or
anything else?

thanks in advance!

···


/***********************************************************************/
/
Guillaume Pierronnet guillaume.pierronnet@ratp.fr /
/
***********************************************************************/

Hi,

···

In message “pack() and unpack() functions for int64” on 03/01/10, guillaume.pierronnet@ratp.fr guillaume.pierronnet@ratp.fr writes:

i need int 64 conversions functions, but i cannot find them in
Array#pack. Do i need to write them myself, write a patch for pack.c or
anything else?

Ruby 1.8 has ‘Q’ (64bit unsigned) and ‘q’ (64bit signed) templates.

						matz.

i need int 64 conversions functions, but i cannot find them in
Array#pack. Do i need to write them myself, write a patch for pack.c or
anything else?

Ruby 1.8 has ‘Q’ (64bit unsigned) and ‘q’ (64bit signed) templates.

Cool! :slight_smile: If not using 1.8, http://www.ruby-talk.com/51134 might be
useful…

HTH,

Bill

···

From: “Yukihiro Matsumoto” matz@ruby-lang.org

In message “pack() and unpack() functions for int64” > on 03/01/10, guillaume.pierronnet@ratp.fr guillaume.pierronnet@ratp.fr writes: