Hi Sara, look at the routines net2host() in http://root.cern.ch/lxr/source/base/inc/Bytes.h I assume you read this file on a little endian machine. In that case you can directly use the host2net() functions. Cheers, Fons. Sara Vanini wrote: > > 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. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET