From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA00939; Wed, 19 Nov 2003 21:31:35 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA01104 for ; Wed, 19 Nov 2003 21:31:34 +0100 (MET) Received: from bob.west.spy.net (mail.west.spy.net [66.149.231.226]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAJKVW124995 for ; Wed, 19 Nov 2003 21:31:33 +0100 (MET) Received: from [10.9.254.240] (sjc-dist3-e3.2wire.com [63.203.253.2]) by bob.west.spy.net (Postfix) with ESMTP id 3AC235CBD for ; Wed, 19 Nov 2003 12:31:26 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v606) Content-Transfer-Encoding: 7bit Message-Id: <57648B84-1ACF-11D8-A4B7-000393CFE6B8@spy.net> Content-Type: text/plain; charset=US-ASCII; format=flowed To: Caml Mailing List From: Dustin Sallings Subject: [Caml-list] int -> byte array (and back) Date: Wed, 19 Nov 2003 12:31:23 -0800 X-Mailer: Apple Mail (2.606) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; byte:01 byte:01 int:01 int:01 array:04 array:04 distribution:07 reverse:13 spy:84 there:16 trying:17 net:78 i'll:21 well:22 myself:22 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I need to be able to get a byte array (specifically in little-endian format) from an int. I'll need the reverse as well. Is there anything that does that in the distribution, or do I need to calculate it myself? Just trying to do things the right way. -- Dustin Sallings ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners