Version française
Home     About     Download     Resources     Contact us    
Browse thread
How to handle endianness and binary string conversion for 32 bits integers (Int32)?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Cannasse <warplayer@f...>
Subject: Re: [Caml-list] How to handle endianness and binary string conversion for 32 bits integers (Int32)?
> 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);

Extlib IO module have some code about that,
See http://ocaml-lib.sourceforge.net/doc/IO.html 

Nicolas