caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* How to handle endianness and binary string conversion for 32 bits integers (Int32)?
@ 2005-06-16 18:25 David MENTRE
  2005-06-16 19:02 ` [Caml-list] " Nicolas George
  2005-06-16 22:25 ` Nicolas Cannasse
  0 siblings, 2 replies; 7+ messages in thread
From: David MENTRE @ 2005-06-16 18:25 UTC (permalink / raw)
  To: caml-list

Hello,

I would like to:

 1. convert between big and little endian 32 bits integers;

 2. convert between 32 bits integers and string binary representation
    (to store integers in Buffer and string data structures);

 3. detect machine endianness at runtime.

How could I do that? My main issue is the point 2.

I know some of my issues have been already discussed on this list but I
have been unable to google them.

Yours,
d.
-- 
pub  1024D/A3AD7A2A 2004-10-03 David MENTRE <dmentre@linux-france.org>
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-06-17 18:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-16 18:25 How to handle endianness and binary string conversion for 32 bits integers (Int32)? David MENTRE
2005-06-16 19:02 ` [Caml-list] " Nicolas George
2005-06-16 19:32   ` David MENTRE
2005-06-16 20:14     ` Nicolas George
2005-06-17  7:29     ` Luca Pascali
2005-06-16 22:25 ` Nicolas Cannasse
2005-06-17 18:10   ` David MENTRE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).