Re: [ROOT] Big endian

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Tue Oct 03 2000 - 19:56:04 MEST


Dear, Sara

The question you posted sounds to general to provide any
reasonable concrete answer.

The generic answer is 

   "You should  WRITE the piece of the code.  That reads your "big indian"
    swap data "somehow" and write in back in the proper order.

Depends of your format this code could either 10 or 1000 lines of the code.
One can use the ROOT TBuffer class source as a pattern 

Hope this helps

                              Valery

----- Original Message ----- 
From: Sara Vanini <sara.vanini@pd.infn.it>
To: <roottalk@pcroot.cern.ch>
Subject: [ROOT] Big endian


> Hi rooters! 
> I need to convert big endian data (from binary files) into little endian 
> format data. What's the best way to do it?
> Best regards
> Sara V.
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET